Merge branch 'dev' into next_version

This commit is contained in:
DCFApixels 2025-04-21 21:22:12 +08:00
commit 5c80c13924
9 changed files with 18 additions and 11 deletions

View File

@ -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;
}

View File

@ -538,7 +538,7 @@ namespace DCFApixels.DragonECS.Internal
state ^= state >> 17;
state ^= state << 5;
return state;
};
}
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static long NextXorShiftState(long state)

View File

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