Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IEntityFunctions.cs 1.3KB

1234567891011121314151617181920
  1. namespace Svelto.ECS
  2. {
  3. public interface IEntityFunctions
  4. {
  5. //being entity ID globally not unique, the group must be specified when
  6. //an entity is removed. Not specifying the group will attempt to remove
  7. //the entity from the special standard group.
  8. void RemoveEntity<T>(uint entityID, ExclusiveGroup.ExclusiveGroupStruct groupID) where T : IEntityDescriptor, new();
  9. void RemoveEntity<T>(EGID entityegid) where T : IEntityDescriptor, new();
  10. void RemoveGroupAndEntities(ExclusiveGroup.ExclusiveGroupStruct groupID);
  11. void SwapEntityGroup<T>(uint entityID, ExclusiveGroup.ExclusiveGroupStruct fromGroupID, ExclusiveGroup.ExclusiveGroupStruct toGroupID) where T : IEntityDescriptor, new();
  12. void SwapEntityGroup<T>(EGID fromID, ExclusiveGroup.ExclusiveGroupStruct toGroupID) where T : IEntityDescriptor, new();
  13. void SwapEntityGroup<T>(EGID fromID, ExclusiveGroup.ExclusiveGroupStruct toGroupID, ExclusiveGroup.ExclusiveGroupStruct mustBeFromGroup) where T : IEntityDescriptor, new();
  14. void SwapEntityGroup<T>(EGID fromID, EGID toId) where T : IEntityDescriptor, new();
  15. void SwapEntityGroup<T>(EGID fromID, EGID toId, ExclusiveGroup.ExclusiveGroupStruct mustBeFromGroup) where T : IEntityDescriptor, new();
  16. }
  17. }