2022-03-17 22:33:22 +01:00
|
|
|
#ifndef ENTITY_SKELETON_DATA_H
|
|
|
|
#define ENTITY_SKELETON_DATA_H
|
2023-12-17 22:59:50 +01:00
|
|
|
|
2022-03-15 13:29:32 +01:00
|
|
|
|
2022-08-17 13:45:14 +02:00
|
|
|
#include "core/object/resource.h"
|
2022-08-17 14:19:55 +02:00
|
|
|
#include "core/string/ustring.h"
|
2022-03-18 00:38:45 +01:00
|
|
|
|
|
|
|
class CharacterSkeletonVisualEntry;
|
2022-03-15 13:29:32 +01:00
|
|
|
|
|
|
|
class EntitySkeletonData : public Resource {
|
|
|
|
GDCLASS(EntitySkeletonData, Resource);
|
|
|
|
|
|
|
|
public:
|
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
|
|
|
|
|
|
|
enum {
|
|
|
|
MAX_ENTRIES = 20
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ESDataEntry {
|
|
|
|
Ref<CharacterSkeletonVisualEntry> entry;
|
|
|
|
Vector3 offset;
|
|
|
|
Vector3 rotation;
|
|
|
|
Vector3 scale;
|
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
ESDataEntry _entries[MAX_ENTRIES];
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|