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.

21 lines
928B

  1. using Svelto.ECS.Internal;
  2. namespace Svelto.ECS
  3. {
  4. public interface IEntityFunctions
  5. {
  6. //being entity ID globally not unique, the group must be specified when
  7. //an entity is removed. Not specificing the group will attempt to remove
  8. //the entity from the special standard group.
  9. void RemoveEntity(int entityID);
  10. void RemoveEntity(int entityID, int groupID);
  11. void RemoveEntity(EGID entityegid);
  12. void RemoveGroupAndEntities(int groupID);
  13. void SwapEntityGroup(int entityID, int fromGroupID, int toGroupID = ExclusiveGroup.StandardEntitiesGroup);
  14. void SwapEntityGroup(EGID id, int toGroupID = ExclusiveGroup.StandardEntitiesGroup);
  15. void SwapEntityGroup(int entityID, int toGroupID);
  16. EGID SwapFirstEntityGroup(int fromGroupID = ExclusiveGroup.StandardEntitiesGroup, int toGroupID = ExclusiveGroup.StandardEntitiesGroup);
  17. }
  18. }