mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-22 17:18:12 +01:00
37 lines
690 B
C++
37 lines
690 B
C++
#ifndef ES_DRAG_AND_DROP_H
|
|
#define ES_DRAG_AND_DROP_H
|
|
|
|
#include "core/reference.h"
|
|
#include "core/ustring.h"
|
|
|
|
class ESDragAndDrop : public Reference {
|
|
GDCLASS(ESDragAndDrop, Reference);
|
|
|
|
public:
|
|
static const String BINDING_STRING_ES_DRAG_AND_DROP_TYPE;
|
|
|
|
enum ESDragAndDropType {
|
|
ES_DRAG_AND_DROP_TYPE_NONE = 0,
|
|
ES_DRAG_AND_DROP_TYPE_SPELL = 1,
|
|
ES_DRAG_AND_DROP_TYPE_ITEM = 2,
|
|
};
|
|
|
|
ESDragAndDropType get_type();
|
|
void set_type(ESDragAndDropType type);
|
|
int get_item_id();
|
|
void set_item_id(int item_id);
|
|
|
|
ESDragAndDrop();
|
|
|
|
protected:
|
|
static void _bind_methods();
|
|
|
|
private:
|
|
ESDragAndDropType _type;
|
|
int _item_id;
|
|
};
|
|
|
|
VARIANT_ENUM_CAST(ESDragAndDrop::ESDragAndDropType);
|
|
|
|
#endif
|