mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
update UncheckedCoreUtility
This commit is contained in:
parent
c0b23c0050
commit
0905aa476c
@ -6,6 +6,7 @@ namespace DCFApixels.DragonECS.UncheckedCore
|
|||||||
{
|
{
|
||||||
public static class UncheckedCoreUtility
|
public static class UncheckedCoreUtility
|
||||||
{
|
{
|
||||||
|
#region CreateEntLong
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
public static entlong CreateEntLong(int entityID, short gen, short worldID)
|
public static entlong CreateEntLong(int entityID, short gen, short worldID)
|
||||||
{
|
{
|
||||||
@ -16,12 +17,14 @@ namespace DCFApixels.DragonECS.UncheckedCore
|
|||||||
{
|
{
|
||||||
return new entlong(entityGenWorld);
|
return new entlong(entityGenWorld);
|
||||||
}
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region CreateSpan
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
public static EcsSpan CreateSpan(short worldID, ReadOnlySpan<int> entitesArray)
|
public static EcsSpan CreateSpan(short worldID, ReadOnlySpan<int> entitesArray)
|
||||||
{
|
{
|
||||||
return new EcsSpan(worldID, entitesArray);
|
return new EcsSpan(worldID, entitesArray);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
public static EcsSpan CreateSpan(short worldID, int[] entitesArray, int startIndex, int length)
|
public static EcsSpan CreateSpan(short worldID, int[] entitesArray, int startIndex, int length)
|
||||||
{
|
{
|
||||||
@ -54,6 +57,14 @@ namespace DCFApixels.DragonECS.UncheckedCore
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region EcsGroup
|
||||||
|
public static EcsGroup GetSourceInstance(EcsReadonlyGroup group)
|
||||||
|
{
|
||||||
|
return group.GetSource_Internal();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
||||||
public readonly struct EntitiesMatrix
|
public readonly struct EntitiesMatrix
|
||||||
|
Loading…
Reference in New Issue
Block a user