34 #include "os/thread_safe.h" 65 bool hide_from_editor;
67 VariantContainer(){ order=0; hide_from_editor=
false; persist=
false; overrided=
false; }
68 VariantContainer(
const Variant& p_variant,
int p_order,
bool p_persist=
false) { variant=p_variant; order=p_order; hide_from_editor=
false; persist=p_persist; overrided=
false; }
71 bool registering_order;
76 bool disable_platform_override;
87 Error _load_settings(
const String p_path);
88 Error _load_settings_binary(
const String p_path);
95 Error _save_custom_bnd(
const String& p_file);
97 bool _load_resource_pack(
const String& p_pack);
101 static void _bind_methods();
105 bool has(
String p_var)
const;
109 void set_persisting(
const String& p_name,
bool p_persist);
110 bool is_persisting(
const String& p_name)
const;
112 String get_resource_path()
const;
114 static Globals *get_singleton();
116 void clear(
const String& p_name);
117 int get_order(
const String& p_name)
const;
118 void set_order(
const String& p_name,
int p_order);
120 Error setup(
const String& p_path,
const String &p_main_pack);
126 void add_singleton(
const Singleton &p_singleton);
129 bool has_singleton(
const String& p_name)
const;
133 List<String> get_input_presets()
const {
return input_presets; }
135 void set_disable_platform_override(
bool p_disable);
136 Object* get_singleton_object(
const String& p_name)
const;
138 void register_global_defaults();
140 bool is_using_datapack()
const;
142 void set_registering_order(
bool p_registering);
151 #define GLOBAL_DEF(m_var,m_value) _GLOBAL_DEF(m_var,m_value)
Definition: string_db.h:48