mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-22 17:18:12 +01:00
51 lines
1.3 KiB
C++
51 lines
1.3 KiB
C++
#ifndef VISUAL_BONE_ATTACHMENT_H
|
|
#define VISUAL_BONE_ATTACHMENT_H
|
|
|
|
#include "core/ustring.h"
|
|
#include "core/resource.h"
|
|
#include "scene/resources/packed_scene.h"
|
|
|
|
#include "../entity_enums.h"
|
|
|
|
class BoneVisualAttachment : public Resource {
|
|
GDCLASS(BoneVisualAttachment, Resource);
|
|
|
|
public:
|
|
static const String BINDING_STRING_BONE_ATTACHMENT_TYPES;
|
|
|
|
enum BoneVisualAttachmentType {
|
|
BONE_ATTACHMENT_TYPE_NONE = 0,
|
|
BONE_ATTACHMENT_TYPE_BODYPART = 1,
|
|
BONE_ATTACHMENT_TYPE_EFFECT = 2,
|
|
BONE_ATTACHMENT_TYPE_EQUIPMENT = 3,
|
|
BONE_ATTACHMENT_TYPE_OVERRIDE = 4
|
|
};
|
|
|
|
int get_id();
|
|
void set_id(int id);
|
|
|
|
BoneVisualAttachmentType get_attachment_type();
|
|
void set_attachment_type(BoneVisualAttachmentType attachment_type);
|
|
|
|
EntityEnums::CharacterSkeletonBoneId get_target_bone();
|
|
void set_target_bone(EntityEnums::CharacterSkeletonBoneId bone);
|
|
|
|
Ref<PackedScene> get_effect();
|
|
void set_effect(Ref<PackedScene> effect);
|
|
|
|
BoneVisualAttachment();
|
|
|
|
protected:
|
|
static void _bind_methods();
|
|
|
|
private:
|
|
int _id;
|
|
BoneVisualAttachmentType _attachment_type;
|
|
EntityEnums::CharacterSkeletonBoneId _target_bone;
|
|
Ref<PackedScene> _effect;
|
|
};
|
|
|
|
VARIANT_ENUM_CAST(BoneVisualAttachment::BoneVisualAttachmentType);
|
|
|
|
#endif
|