Reverting experimental code

This commit is contained in:
Pavel Shevaev 2024-11-19 15:37:27 +03:00
parent 3be17ed0d0
commit 852f860499
1 changed files with 6 additions and 6 deletions

View File

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