mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
add pool.NewEntityLong
This commit is contained in:
parent
78b49e3f7b
commit
6865955a56
@ -261,6 +261,12 @@ namespace DCFApixels.DragonECS
|
|||||||
entityID = self.World.NewEntity();
|
entityID = self.World.NewEntity();
|
||||||
return ref self.Add(entityID);
|
return ref self.Add(entityID);
|
||||||
}
|
}
|
||||||
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
|
public static ref T NewEntityLong<T>(this IEcsStructPool<T> self, out entlong entity) where T : struct
|
||||||
|
{
|
||||||
|
entity = self.World.NewEntityLong();
|
||||||
|
return ref self.Add(entity.GetIDUnchecked());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user