diff --git a/tpl/bind_ecslite.twig b/tpl/bind_ecslite.twig index cf4c0e6..3ace8b5 100644 --- a/tpl/bind_ecslite.twig +++ b/tpl/bind_ecslite.twig @@ -11,7 +11,7 @@ if(e.Unpack(out EcsWorld world, out int id) == false) throw new Exception("No entity found"); - world.GetPoolCached<{{token_or(o, 'bhl_native_class', o.name)}}>().Ensure(id); + world.GetPool<{{token_or(o, 'bhl_native_class', o.name)}}>().Ensure(id); return null; } @@ -34,7 +34,7 @@ if(e.Unpack(out EcsWorld world, out int id) == false) return null; - world.GetPoolCached<{{token_or(o, 'bhl_native_class', o.name)}}>().Del(id); + world.GetPool<{{token_or(o, 'bhl_native_class', o.name)}}>().Del(id); return null; } @@ -59,7 +59,7 @@ if(e.Unpack(out EcsWorld world, out int id) == false) dv.SetBool(false); else - dv.SetBool(world.GetPoolCached<{{token_or(o, 'bhl_native_class', o.name)}}>().Has(id)); + dv.SetBool(world.GetPool<{{token_or(o, 'bhl_native_class', o.name)}}>().Has(id)); stack.Push(dv); return null; @@ -108,7 +108,7 @@ {%- if token_or(f, 'bhl_set', 1) != 0 ~%} if(dv != null) { - ref var cmp = ref world.GetPoolCached<{{token_or(o, 'bhl_native_class', o.name)}}>().Ensure(id); + ref var cmp = ref world.GetPool<{{token_or(o, 'bhl_native_class', o.name)}}>().Ensure(id); {%- if f.type is instanceof('\\mtgArrType') -%} if(dv._obj != null && !dv._obj.Equals(cmp.{{f.name}})) {%- endif ~%} @@ -119,7 +119,7 @@ else {%- endif ~%} { - var pool = world.GetPoolCached<{{token_or(o, 'bhl_native_class', o.name)}}>(); + var pool = world.GetPool<{{token_or(o, 'bhl_native_class', o.name)}}>(); if(pool.Has(id)) { dv = Val.New(frm.vm); @@ -158,7 +158,7 @@ if(e.Unpack(out EcsWorld world, out int id) == false) throw new Exception("No entity found"); - var pool = world.GetPoolCached<{{token_or(o, 'bhl_native_class', o.name)}}>(); + var pool = world.GetPool<{{token_or(o, 'bhl_native_class', o.name)}}>(); if(pool.Has(id)) {