diff --git a/tpl/codegen_autobind.twig b/tpl/codegen_autobind.twig index 8716bf7..9267023 100644 --- a/tpl/codegen_autobind.twig +++ b/tpl/codegen_autobind.twig @@ -29,11 +29,17 @@ static public class Types_{{u.object.name|norm_name}} { static public class {{register_class}} { public static void Register(Types types) +{ + RegisterBegin(types); + RegisterEnd(types); +} + +public static void RegisterBegin(Types types) { {{ macro.call_reg_units(slice_units(meta.units, 20)) }} } -public static void Setup(Types types) +public static void RegisterEnd(Types types) { {{ macro.setup_global_types(meta.units) }} }