Compare commits
No commits in common. "master" and "v2.6.0" have entirely different histories.
|
@ -1,8 +1,2 @@
|
|||
## v2.6.0
|
||||
- More flexible composer dependencies
|
||||
|
||||
## v2.5.0
|
||||
- Using local static functions instead of lambdas for better stack traces
|
||||
|
||||
## v2.0.0
|
||||
- Bumping dependency from bit/metagen_bhl_bind up to v13.0.0
|
|
@ -57,13 +57,15 @@ class BindEclLitePlugin implements \bhl_bind\BindPlugin
|
|||
$code .= "#if !BHL_FRONT\n";
|
||||
$code .= "public static bool TryUnpackEcsEntity(ValStack stack, out EcsWorld world, out int id)\n";
|
||||
$code .= "{\n";
|
||||
$code .= " var e = stack.PopRelease().Decode(new EcsPackedEntityWithWorld());\n\n";
|
||||
$code .= " EcsPackedEntityWithWorld e = default;\n";
|
||||
$code .= " stack.PopRelease().Decode(ref e);\n\n";
|
||||
$code .= " return e.Unpack(out world, out id);\n";
|
||||
$code .= "}\n\n";
|
||||
|
||||
$code .= "public static void UnpackEcsEntity(ValStack stack, out EcsWorld world, out int id)\n";
|
||||
$code .= "{\n";
|
||||
$code .= " var e = stack.PopRelease().Decode(new EcsPackedEntityWithWorld());\n\n";
|
||||
$code .= " EcsPackedEntityWithWorld e = default;\n";
|
||||
$code .= " stack.PopRelease().Decode(ref e);\n\n";
|
||||
$code .= " if(e.Unpack(out world, out id) == false)\n";
|
||||
$code .= " throw new Exception(\"No entity found\");\n";
|
||||
$code .= "}\n\n";
|
||||
|
|
Loading…
Reference in New Issue