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:
parent
ce26eb74bc
commit
118eed485e
751 changed files with 8046 additions and 7810 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue