mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
ClassDB: Provide the enum name of integer constants
This commit is contained in:
@@ -242,18 +242,18 @@ void IP::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("get_local_addresses"), &IP::_get_local_addresses);
|
||||
ClassDB::bind_method(D_METHOD("clear_cache", "hostname"), &IP::clear_cache, DEFVAL(""));
|
||||
|
||||
BIND_CONSTANT(RESOLVER_STATUS_NONE);
|
||||
BIND_CONSTANT(RESOLVER_STATUS_WAITING);
|
||||
BIND_CONSTANT(RESOLVER_STATUS_DONE);
|
||||
BIND_CONSTANT(RESOLVER_STATUS_ERROR);
|
||||
BIND_ENUM_CONSTANT(RESOLVER_STATUS_NONE);
|
||||
BIND_ENUM_CONSTANT(RESOLVER_STATUS_WAITING);
|
||||
BIND_ENUM_CONSTANT(RESOLVER_STATUS_DONE);
|
||||
BIND_ENUM_CONSTANT(RESOLVER_STATUS_ERROR);
|
||||
|
||||
BIND_CONSTANT(RESOLVER_MAX_QUERIES);
|
||||
BIND_CONSTANT(RESOLVER_INVALID_ID);
|
||||
|
||||
BIND_CONSTANT(TYPE_NONE);
|
||||
BIND_CONSTANT(TYPE_IPV4);
|
||||
BIND_CONSTANT(TYPE_IPV6);
|
||||
BIND_CONSTANT(TYPE_ANY);
|
||||
BIND_ENUM_CONSTANT(TYPE_NONE);
|
||||
BIND_ENUM_CONSTANT(TYPE_IPV4);
|
||||
BIND_ENUM_CONSTANT(TYPE_IPV6);
|
||||
BIND_ENUM_CONSTANT(TYPE_ANY);
|
||||
}
|
||||
|
||||
IP *IP::singleton = NULL;
|
||||
|
||||
Reference in New Issue
Block a user