mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Add static method support to core Variant types
* Properly exposed, including validated and variant call * Bound static functions in String and Color * Did not add support for scripting languages, will have to be added manually.
This commit is contained in:
@@ -562,6 +562,7 @@ void register_global_constants() {
|
||||
BIND_CORE_ENUM_CONSTANT(METHOD_FLAG_REVERSE);
|
||||
BIND_CORE_ENUM_CONSTANT(METHOD_FLAG_VIRTUAL);
|
||||
BIND_CORE_ENUM_CONSTANT(METHOD_FLAG_FROM_SCRIPT);
|
||||
BIND_CORE_ENUM_CONSTANT(METHOD_FLAG_STATIC);
|
||||
BIND_CORE_ENUM_CONSTANT(METHOD_FLAGS_DEFAULT);
|
||||
|
||||
BIND_CORE_ENUM_CONSTANT_CUSTOM("TYPE_NIL", Variant::NIL);
|
||||
|
||||
Reference in New Issue
Block a user