add pool.NewEntityLong

This commit is contained in:
DCFApixels 2025-03-20 10:55:57 +08:00
parent 78b49e3f7b
commit 6865955a56

View File

@ -261,6 +261,12 @@ namespace DCFApixels.DragonECS
entityID = self.World.NewEntity();
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