2019-05-01 02:49:06 +02:00
|
|
|
#ifndef CHARACTER_SKELETON_H
|
|
|
|
#define CHARACTER_SKELETON_H
|
|
|
|
|
|
|
|
#ifdef ENTITIES_2D
|
|
|
|
#include "scene/2d/node_2d.h"
|
|
|
|
#else
|
|
|
|
#include "scene/3d/spatial.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "core/node_path.h"
|
|
|
|
#include "core/ustring.h"
|
|
|
|
#include "scene/animation/animation_player.h"
|
|
|
|
#include "scene/animation/animation_tree.h"
|
|
|
|
|
2019-07-01 01:29:59 +02:00
|
|
|
#include "../data/character_skeleton_visual_entry.h"
|
2019-05-13 13:25:03 +02:00
|
|
|
#include "../entity_enums.h"
|
|
|
|
|
2019-05-01 02:49:06 +02:00
|
|
|
#ifdef ENTITIES_2D
|
|
|
|
|
|
|
|
class CharacterSkeleton : public Node2D {
|
|
|
|
GDCLASS(CharacterSkeleton, Node2D);
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
class CharacterSkeleton : public Spatial {
|
|
|
|
GDCLASS(CharacterSkeleton, Spatial);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
public:
|
|
|
|
CharacterSkeleton();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
2019-07-01 01:29:59 +02:00
|
|
|
|
2019-08-23 20:52:01 +02:00
|
|
|
//private:
|
2019-05-01 02:49:06 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|