add UncheckedCoreUtility.CreateEntLong

This commit is contained in:
ByteWarsJedi 2024-12-16 12:55:22 +08:00
parent 7ce5e0b19b
commit d970212c23

View File

@ -6,6 +6,16 @@ namespace DCFApixels.DragonECS.UncheckedCore
{ {
public static class UncheckedCoreUtility public static class UncheckedCoreUtility
{ {
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static entlong CreateEntLong(int entityID, short gen, short worldID)
{
return new entlong(entityID, gen, worldID);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static entlong CreateEntLong(long entityGenWorld)
{
return new entlong(entityGenWorld);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]
public static EcsSpan CreateSpan(short worldID, ReadOnlySpan<int> entitesArray) public static EcsSpan CreateSpan(short worldID, ReadOnlySpan<int> entitesArray)
{ {