Skip to content

Commit e5a3087

Browse files
authored
Merge pull request #415 from godot-rust/qol/codegen-to-typesystem
Delegate majority of engine codegen to type system
2 parents 00ba8c9 + b980875 commit e5a3087

File tree

15 files changed

+504
-300
lines changed

15 files changed

+504
-300
lines changed

ReadMe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![logo.png](assets/gdext-ferris.png)
22

3-
# Rust bindings for GDExtension
3+
# Rust bindings for Godot 4
44

55
_**[Website]** | **[API Docs]** | [Discord] | [Mastodon] | [Twitter]_
66

godot-codegen/src/central_generator.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,8 @@ fn make_builtin_lifecycle_table(builtin_types: &BuiltinTypeMap) -> TokenStream {
689689
},
690690
method_decls: Vec::with_capacity(len),
691691
method_inits: Vec::with_capacity(len),
692-
class_count: 0,
693-
method_count: len,
692+
class_count: len,
693+
method_count: 0,
694694
};
695695

696696
// Note: NIL is not part of this iteration, it will be added manually
@@ -705,7 +705,6 @@ fn make_builtin_lifecycle_table(builtin_types: &BuiltinTypeMap) -> TokenStream {
705705

706706
table.method_decls.push(decls);
707707
table.method_inits.push(inits);
708-
table.class_count += 1;
709708
}
710709

711710
make_named_method_table(table)

0 commit comments

Comments
 (0)