mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
Merge branch 'dev' into next_version
This commit is contained in:
commit
5c80c13924
@ -45,10 +45,15 @@ namespace DCFApixels.DragonECS
|
|||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
public static bool TryGetWorld(short worldID, out EcsWorld world)
|
public static bool TryGetWorld(short worldID, out EcsWorld world)
|
||||||
{// ts
|
{// ts
|
||||||
|
if (worldID >= _worlds.Length)
|
||||||
|
{
|
||||||
|
world = null;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
world = _worlds[worldID];
|
world = _worlds[worldID];
|
||||||
return
|
return
|
||||||
world != null &&
|
world != null &&
|
||||||
world.IsDestroyed != false &&
|
world.IsDestroyed == false &&
|
||||||
worldID != 0;
|
worldID != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -538,7 +538,7 @@ namespace DCFApixels.DragonECS.Internal
|
|||||||
state ^= state >> 17;
|
state ^= state >> 17;
|
||||||
state ^= state << 5;
|
state ^= state << 5;
|
||||||
return state;
|
return state;
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
public static long NextXorShiftState(long state)
|
public static long NextXorShiftState(long state)
|
||||||
|
@ -464,6 +464,8 @@ namespace DCFApixels.DragonECS
|
|||||||
a.gen != b.gen ||
|
a.gen != b.gen ||
|
||||||
a.world != b.world;
|
a.world != b.world;
|
||||||
}
|
}
|
||||||
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
|
public static explicit operator EntitySlotInfo(entlong a) { return new EntitySlotInfo(a._full); }
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Other
|
#region Other
|
||||||
|
Loading…
Reference in New Issue
Block a user