2022-03-17 22:33:22 +01:00
|
|
|
#ifndef INPUT_PROFILE_H
|
|
|
|
#define INPUT_PROFILE_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/reference.h"
|
2022-08-17 14:19:55 +02:00
|
|
|
#include "core/string/ustring.h"
|
2022-03-15 13:29:32 +01:00
|
|
|
|
|
|
|
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
|