Add shorthand for using singleton string names
This commit is contained in:
@ -50,12 +50,10 @@ public:
|
||||
|
||||
static CoreStringNames *singleton;
|
||||
|
||||
StringName _free;
|
||||
StringName free_; // "free", conflict with C++ keyword.
|
||||
StringName changed;
|
||||
StringName _script;
|
||||
StringName script;
|
||||
StringName script_changed;
|
||||
StringName ___pdcdata;
|
||||
StringName __getvar;
|
||||
StringName _iter_init;
|
||||
StringName _iter_next;
|
||||
StringName _iter_get;
|
||||
@ -98,4 +96,6 @@ public:
|
||||
StringName property_list_changed;
|
||||
};
|
||||
|
||||
#define CoreStringName(m_name) CoreStringNames::get_singleton()->m_name
|
||||
|
||||
#endif // CORE_STRING_NAMES_H
|
||||
|
||||
Reference in New Issue
Block a user