Keeping BC and making it more flexible: Register(..) now calls RegisterBegin(..) and RegisterEnd(..)
This commit is contained in:
parent
4be8ded046
commit
425cd73936
|
@ -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) }}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue