You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Makes Mono bindings partial & adds GetNode<T>.
This commit is contained in:
@@ -731,7 +731,7 @@ Error BindingsGenerator::_generate_cs_type(const TypeInterface &itype, const Str
|
||||
|
||||
output.push_back(INDENT1 "public ");
|
||||
bool is_abstract = itype.is_object_type && !ClassDB::can_instance(itype.name) && ClassDB::is_class_enabled(itype.name); // can_instance returns true if there's a constructor and the class is not 'disabled'
|
||||
output.push_back(itype.is_singleton ? "static class " : (is_abstract ? "abstract class " : "class "));
|
||||
output.push_back(itype.is_singleton ? "static partial class " : (is_abstract ? "abstract partial class " : "partial class "));
|
||||
output.push_back(itype.proxy_name);
|
||||
|
||||
if (itype.is_singleton) {
|
||||
|
||||
Reference in New Issue
Block a user