diff --git a/tpl/macro.twig b/tpl/macro.twig index b9f2dbd..4ec2e4d 100644 --- a/tpl/macro.twig +++ b/tpl/macro.twig @@ -109,7 +109,7 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack {%- macro decl_func_partial_class(o, prefix, this_type = null) ~%} - public partial class {{prefix}}{{o.name|norm_name}} {% if has_token(o, 'bhl_coroutine') %}: bhl.ICoroutine {% endif %} { + public partial class {{prefix}}{{o.name|norm_name}} {% if has_token(o, 'bhl_coroutine') %}: bhl.Coroutine {% endif %} { {% if o.args or this_type ~%} @@ -202,11 +202,11 @@ Script_{{o.name|norm_name}}.Method_{{m.name}}.ReturnValue(frm, stack Init(frm, stack); } - public void Tick(VM.Frame frm, bhl.VM.ExecState exec, ref BHS status) { + public override void Tick(VM.Frame frm, bhl.VM.ExecState exec, ref BHS status) { Exec(frm, exec.stack, ref status); } - public void Cleanup(VM.Frame frm, bhl.VM.ExecState exec) { + public override void Cleanup(VM.Frame frm, bhl.VM.ExecState exec) { Cleanup(frm); {% if o.args or this_type ~%} args = default;