| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
#pragma once |
| 32 |
|
| 33 |
#include "core/string/string_name.h" |
| 34 |
|
| 35 |
class CoreStringNames { |
| 36 |
inline static CoreStringNames *singleton = nullptr; |
| 37 |
|
| 38 |
public: |
| 39 |
static void create() { singleton = memnew(CoreStringNames); } |
| 40 |
static void free() { |
| 41 |
memdelete(singleton); |
| 42 |
singleton = nullptr; |
| 43 |
} |
| 44 |
|
| 45 |
_FORCE_INLINE_ static CoreStringNames *get_singleton() { return singleton; } |
| 46 |
|
| 47 |
const StringName free_ = "free"; |
| 48 |
const StringName changed = "changed"; |
| 49 |
const StringName script = "script"; |
| 50 |
const StringName script_changed = "script_changed"; |
| 51 |
const StringName _iter_init = "_iter_init"; |
| 52 |
const StringName _iter_next = "_iter_next"; |
| 53 |
const StringName _iter_get = "_iter_get"; |
| 54 |
const StringName get_rid = "get_rid"; |
| 55 |
const StringName _to_string = "_to_string"; |
| 56 |
const StringName _custom_features = "_custom_features"; |
| 57 |
|
| 58 |
const StringName x = "x"; |
| 59 |
const StringName y = "y"; |
| 60 |
const StringName z = "z"; |
| 61 |
const StringName w = "w"; |
| 62 |
const StringName r = "r"; |
| 63 |
const StringName g = "g"; |
| 64 |
const StringName b = "b"; |
| 65 |
const StringName a = "a"; |
| 66 |
const StringName position = "position"; |
| 67 |
const StringName size = "size"; |
| 68 |
const StringName end = "end"; |
| 69 |
const StringName basis = "basis"; |
| 70 |
const StringName origin = "origin"; |
| 71 |
const StringName normal = "normal"; |
| 72 |
const StringName d = "d"; |
| 73 |
const StringName h = "h"; |
| 74 |
const StringName s = "s"; |
| 75 |
const StringName v = "v"; |
| 76 |
const StringName r8 = "r8"; |
| 77 |
const StringName g8 = "g8"; |
| 78 |
const StringName b8 = "b8"; |
| 79 |
const StringName a8 = "a8"; |
| 80 |
|
| 81 |
const StringName call = "call"; |
| 82 |
const StringName call_deferred = "call_deferred"; |
| 83 |
const StringName bind = "bind"; |
| 84 |
const StringName notification = "notification"; |
| 85 |
const StringName property_list_changed = "property_list_changed"; |
| 86 |
}; |
| 87 |
|
| 88 |
#define CoreStringName(m_name) CoreStringNames::get_singleton()->m_name |