You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant.
All usages of "type" to refer to classes were renamed to "class" ClassDB has been exposed to GDScript. OBJ_TYPE() macro is now GDCLASS()
This commit is contained in:
@@ -208,7 +208,7 @@ int GDCompiler::_parse_expression(CodeGen& codegen,const GDParser::Node *p_expre
|
||||
if (nc) {
|
||||
|
||||
bool success=false;
|
||||
int constant = ObjectTypeDB::get_integer_constant(nc->get_name(),identifier,&success);
|
||||
int constant = ClassDB::get_integer_constant(nc->get_name(),identifier,&success);
|
||||
if (success) {
|
||||
Variant key=constant;
|
||||
int idx;
|
||||
@@ -1723,7 +1723,7 @@ Error GDCompiler::_parse_class(GDScript *p_script, GDScript *p_owner, const GDPa
|
||||
}
|
||||
|
||||
if (native.is_valid()) {
|
||||
if (ObjectTypeDB::has_signal(native->get_name(),name)) {
|
||||
if (ClassDB::has_signal(native->get_name(),name)) {
|
||||
_set_error("Signal '"+name+"' redefined (original in native class '"+String(native->get_name())+"')",p_class);
|
||||
return ERR_ALREADY_EXISTS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user