diff --git a/src/Pools/EcsPoolBase.cs b/src/Pools/EcsPoolBase.cs index cdb1948..8990cb5 100644 --- a/src/Pools/EcsPoolBase.cs +++ b/src/Pools/EcsPoolBase.cs @@ -261,6 +261,12 @@ namespace DCFApixels.DragonECS entityID = self.World.NewEntity(); return ref self.Add(entityID); } + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static ref T NewEntityLong(this IEcsStructPool self, out entlong entity) where T : struct + { + entity = self.World.NewEntityLong(); + return ref self.Add(entity.GetIDUnchecked()); + } } #endregion