pandemonium_engine/modules/entity_spell_system/profiles/input/input_profile.h

42 lines
654 B
C++
Raw Normal View History

2022-03-17 22:33:22 +01:00
#ifndef INPUT_PROFILE_H
#define INPUT_PROFILE_H
2023-12-17 22:59:50 +01:00
#include "core/object/reference.h"
#include "core/string/ustring.h"
class ClassProfile;
class InputProfile : public Reference {
GDCLASS(InputProfile, Reference);
public:
Ref<ClassProfile> get_owner();
void set_owner(ClassProfile *owner);
Array get_data();
void set_data(const Array &data);
void load_to_projectsettings();
void save_from_projectsettings();
void load_defaults();
void emit_change();
Dictionary to_dict() const;
void from_dict(const Dictionary &dict);
InputProfile();
protected:
static void _bind_methods();
private:
Array _data;
ClassProfile *_owner;
};
#endif