mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-22 17:18:12 +01:00
32 lines
534 B
C
32 lines
534 B
C
|
#ifndef AI_FORMATION_H
|
||
|
#define AI_FORMATION_H
|
||
|
|
||
|
#include "core/resource.h"
|
||
|
#include "scene/main/node.h"
|
||
|
|
||
|
class Entity;
|
||
|
|
||
|
class AIFormation : public Resource {
|
||
|
GDCLASS(AIFormation, Resource);
|
||
|
|
||
|
public:
|
||
|
void set_owner(Entity *entity);
|
||
|
void set_owner_bind(Node *entity);
|
||
|
Entity *get_owner();
|
||
|
|
||
|
void set_editor_description(const String &p_editor_description);
|
||
|
String get_editor_description() const;
|
||
|
|
||
|
Vector3 get_position(int slot_index);
|
||
|
|
||
|
AIFormation();
|
||
|
|
||
|
protected:
|
||
|
static void _bind_methods();
|
||
|
|
||
|
private:
|
||
|
Entity *_owner;
|
||
|
};
|
||
|
|
||
|
#endif
|