22 lines
600 B
C++
22 lines
600 B
C++
#pragma once
|
|
|
|
#include "authority/character.h"
|
|
#include "authority/nav_marker.h"
|
|
#include "scene/3d/navigation/navigation_agent_3d.h"
|
|
|
|
class PartyMemberFollow : public CharacterState {
|
|
GDCLASS(PartyMemberFollow, CharacterState);
|
|
static void _bind_methods();
|
|
void process_position_target();
|
|
void push_movement_direction(Vector3 velocity);
|
|
|
|
protected:
|
|
void _notification(int what);
|
|
PackedStringArray get_configuration_warnings() const override;
|
|
void state_entered() override;
|
|
void state_exited() override;
|
|
|
|
private:
|
|
NavigationAgent3D *nav{ nullptr };
|
|
NavMarker *claimed_marker{ nullptr };
|
|
};
|