You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/gdscript/gdscript_warning.h
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,8 @@ class GDScriptWarning {
89
89
NATIVE_METHOD_OVERRIDE, // The script method overrides a native one, this may not work as intended.
90
90
GET_NODE_DEFAULT_WITHOUT_ONREADY, // A class variable uses `get_node()` (or the `$` notation) as its default value, but does not use the @onready annotation.
91
91
ONREADY_WITH_EXPORT, // The `@onready` annotation will set the value after `@export` which is likely not intended.
92
+
ACCESS_PRIVATE_MEMBER, // Accessing a private member from external places. E.g. accessing an `_`-prefixed member from other classes that are not derived from the class where the member is defined.
93
+
CALL_PRIVATE_METHOD, // Calling a private method from external places. E.g. calling an `_`-prefixed method from other classes that are not derived from the class where the method is defined.
92
94
#ifndef DISABLE_DEPRECATED
93
95
PROPERTY_USED_AS_FUNCTION, // Function not found, but there's a property with the same name.
94
96
CONSTANT_USED_AS_FUNCTION, // Function not found, but there's a constant with the same name.
@@ -146,6 +148,8 @@ class GDScriptWarning {
146
148
ERROR, // NATIVE_METHOD_OVERRIDE // May not work as expected.
147
149
ERROR, // GET_NODE_DEFAULT_WITHOUT_ONREADY // May not work as expected.
148
150
ERROR, // ONREADY_WITH_EXPORT // May not work as expected.
0 commit comments