mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-17 17:34:36 +08:00
fixes
This commit is contained in:
parent
ee9c9d598a
commit
3c053b2a5e
@ -45,10 +45,15 @@ namespace DCFApixels.DragonECS
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static bool TryGetWorld(short worldID, out EcsWorld world)
|
||||
{// ts
|
||||
if(worldID >= _worlds.Length)
|
||||
{
|
||||
world = null;
|
||||
return false;
|
||||
}
|
||||
world = _worlds[worldID];
|
||||
return
|
||||
world != null &&
|
||||
world.IsDestroyed != false &&
|
||||
world.IsDestroyed == false &&
|
||||
worldID != 0;
|
||||
}
|
||||
|
||||
|
@ -464,6 +464,8 @@ namespace DCFApixels.DragonECS
|
||||
a.gen != b.gen ||
|
||||
a.world != b.world;
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static explicit operator EntitySlotInfo(entlong a) { return new EntitySlotInfo(a._full); }
|
||||
#endregion
|
||||
|
||||
#region Other
|
||||
|
Loading…
Reference in New Issue
Block a user