Keeping BC and making it more flexible: Register(..) now calls RegisterBegin(..) and RegisterEnd(..)

This commit is contained in:
Pavel Shevaev 2023-05-24 14:34:27 +03:00
parent 4be8ded046
commit 425cd73936
1 changed files with 7 additions and 1 deletions

View File

@ -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) }}
}