|
@@ -497,7 +497,7 @@ void BindingsGenerator::_append_xml_method(StringBuilder &p_xml_output, const Ty
|
|
|
} else if (!p_target_itype || !p_target_itype->is_object_type) {
|
|
|
if (OS::get_singleton()->is_stdout_verbose()) {
|
|
|
if (p_target_itype) {
|
|
|
- OS::get_singleton()->print("Cannot resolve method reference for non-Godot.Object type in documentation: %s\n", p_link_target.utf8().get_data());
|
|
|
+ OS::get_singleton()->print("Cannot resolve method reference for non-GodotObject type in documentation: %s\n", p_link_target.utf8().get_data());
|
|
|
} else {
|
|
|
OS::get_singleton()->print("Cannot resolve type from method reference in documentation: %s\n", p_link_target.utf8().get_data());
|
|
|
}
|
|
@@ -537,7 +537,7 @@ void BindingsGenerator::_append_xml_member(StringBuilder &p_xml_output, const Ty
|
|
|
} else if (!p_target_itype || !p_target_itype->is_object_type) {
|
|
|
if (OS::get_singleton()->is_stdout_verbose()) {
|
|
|
if (p_target_itype) {
|
|
|
- OS::get_singleton()->print("Cannot resolve member reference for non-Godot.Object type in documentation: %s\n", p_link_target.utf8().get_data());
|
|
|
+ OS::get_singleton()->print("Cannot resolve member reference for non-GodotObject type in documentation: %s\n", p_link_target.utf8().get_data());
|
|
|
} else {
|
|
|
OS::get_singleton()->print("Cannot resolve type from member reference in documentation: %s\n", p_link_target.utf8().get_data());
|
|
|
}
|
|
@@ -573,7 +573,7 @@ void BindingsGenerator::_append_xml_signal(StringBuilder &p_xml_output, const Ty
|
|
|
if (!p_target_itype || !p_target_itype->is_object_type) {
|
|
|
if (OS::get_singleton()->is_stdout_verbose()) {
|
|
|
if (p_target_itype) {
|
|
|
- OS::get_singleton()->print("Cannot resolve signal reference for non-Godot.Object type in documentation: %s\n", p_link_target.utf8().get_data());
|
|
|
+ OS::get_singleton()->print("Cannot resolve signal reference for non-GodotObject type in documentation: %s\n", p_link_target.utf8().get_data());
|
|
|
} else {
|
|
|
OS::get_singleton()->print("Cannot resolve type from signal reference in documentation: %s\n", p_link_target.utf8().get_data());
|
|
|
}
|
|
@@ -630,7 +630,7 @@ void BindingsGenerator::_append_xml_constant(StringBuilder &p_xml_output, const
|
|
|
|
|
|
if (OS::get_singleton()->is_stdout_verbose()) {
|
|
|
if (p_target_itype) {
|
|
|
- OS::get_singleton()->print("Cannot resolve constant reference for non-Godot.Object type in documentation: %s\n", p_link_target.utf8().get_data());
|
|
|
+ OS::get_singleton()->print("Cannot resolve constant reference for non-GodotObject type in documentation: %s\n", p_link_target.utf8().get_data());
|
|
|
} else {
|
|
|
OS::get_singleton()->print("Cannot resolve type from constant reference in documentation: %s\n", p_link_target.utf8().get_data());
|
|
|
}
|
|
@@ -1317,7 +1317,7 @@ Error BindingsGenerator::_generate_cs_type(const TypeInterface &itype, const Str
|
|
|
bool is_derived_type = itype.base_name != StringName();
|
|
|
|
|
|
if (!is_derived_type) {
|
|
|
- // Some Godot.Object assertions
|
|
|
+ // Some GodotObject assertions
|
|
|
CRASH_COND(itype.cname != name_cache.type_Object);
|
|
|
CRASH_COND(!itype.is_instantiable);
|
|
|
CRASH_COND(itype.api_type != ClassDB::API_CORE);
|
|
@@ -1479,9 +1479,9 @@ Error BindingsGenerator::_generate_cs_type(const TypeInterface &itype, const Str
|
|
|
if (itype.is_singleton) {
|
|
|
// Add the type name and the singleton pointer as static fields
|
|
|
|
|
|
- output.append(MEMBER_BEGIN "private static Godot.Object singleton;\n");
|
|
|
+ output.append(MEMBER_BEGIN "private static GodotObject singleton;\n");
|
|
|
|
|
|
- output << MEMBER_BEGIN "public static Godot.Object " CS_PROPERTY_SINGLETON "\n" INDENT1 "{\n"
|
|
|
+ output << MEMBER_BEGIN "public static GodotObject " CS_PROPERTY_SINGLETON "\n" INDENT1 "{\n"
|
|
|
<< INDENT2 "get\n" INDENT2 "{\n" INDENT3 "if (singleton == null)\n"
|
|
|
<< INDENT4 "singleton = " C_METHOD_ENGINE_GET_SINGLETON "(typeof("
|
|
|
<< itype.proxy_name
|
|
@@ -1491,8 +1491,8 @@ Error BindingsGenerator::_generate_cs_type(const TypeInterface &itype, const Str
|
|
|
output.append(itype.name);
|
|
|
output.append("\";\n");
|
|
|
} else {
|
|
|
- // IMPORTANT: We also generate the static fields for Godot.Object instead of declaring
|
|
|
- // them manually in the `Object.base.cs` partial class declaration, because they're
|
|
|
+ // IMPORTANT: We also generate the static fields for GodotObject instead of declaring
|
|
|
+ // them manually in the `GodotObject.base.cs` partial class declaration, because they're
|
|
|
// required by other static fields in this generated partial class declaration.
|
|
|
// Static fields are initialized in order of declaration, but when they're in different
|
|
|
// partial class declarations then it becomes harder to tell (Rider warns about this).
|
|
@@ -2062,9 +2062,9 @@ Error BindingsGenerator::_generate_cs_method(const BindingsGenerator::TypeInterf
|
|
|
<< INDENT1 "private static readonly IntPtr " << method_bind_field << " = ";
|
|
|
|
|
|
if (p_itype.is_singleton) {
|
|
|
- // Singletons are static classes. They don't derive Godot.Object,
|
|
|
+ // Singletons are static classes. They don't derive GodotObject,
|
|
|
// so we need to specify the type to call the static method.
|
|
|
- p_output << "Object.";
|
|
|
+ p_output << "GodotObject.";
|
|
|
}
|
|
|
|
|
|
p_output << ICALL_CLASSDB_GET_METHOD "(" BINDINGS_NATIVE_NAME_FIELD ", MethodName."
|
|
@@ -2843,9 +2843,9 @@ bool BindingsGenerator::_populate_object_type_interfaces() {
|
|
|
itype.cs_type = itype.proxy_name;
|
|
|
|
|
|
if (itype.is_singleton) {
|
|
|
- itype.cs_in_expr = "Object." CS_STATIC_METHOD_GETINSTANCE "(" CS_PROPERTY_SINGLETON ")";
|
|
|
+ itype.cs_in_expr = "GodotObject." CS_STATIC_METHOD_GETINSTANCE "(" CS_PROPERTY_SINGLETON ")";
|
|
|
} else {
|
|
|
- itype.cs_in_expr = "Object." CS_STATIC_METHOD_GETINSTANCE "(%0)";
|
|
|
+ itype.cs_in_expr = "GodotObject." CS_STATIC_METHOD_GETINSTANCE "(%0)";
|
|
|
}
|
|
|
|
|
|
itype.cs_out = "%5return (%2)%0(%1);";
|
|
@@ -2853,7 +2853,7 @@ bool BindingsGenerator::_populate_object_type_interfaces() {
|
|
|
itype.c_arg_in = "(void*)%s";
|
|
|
itype.c_type = "IntPtr";
|
|
|
itype.c_type_in = itype.c_type;
|
|
|
- itype.c_type_out = "Object";
|
|
|
+ itype.c_type_out = "GodotObject";
|
|
|
|
|
|
// Populate properties
|
|
|
|