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.

37 lines
959B

  1. namespace Svelto.ECS.Internal
  2. {
  3. sealed class RemoveEntityImplementor : IRemoveEntityComponent
  4. {
  5. public RemoveEntityImplementor(IEntityViewBuilder[] entityViews, int groupID):this(entityViews)
  6. {
  7. this.groupID = groupID;
  8. isInAGroup = true;
  9. }
  10. internal RemoveEntityImplementor(IEntityViewBuilder[] entityViews)
  11. {
  12. removeEntityInfo = new RemoveEntityInfo(entityViews);
  13. }
  14. readonly internal RemoveEntityInfo removeEntityInfo;
  15. readonly internal int groupID;
  16. readonly internal bool isInAGroup;
  17. }
  18. }
  19. namespace Svelto.ECS
  20. {
  21. public interface IRemoveEntityComponent
  22. {}
  23. public struct RemoveEntityInfo
  24. {
  25. readonly internal IEntityViewBuilder[] entityViewsToBuild;
  26. public RemoveEntityInfo(IEntityViewBuilder[] entityViews) : this()
  27. {
  28. this.entityViewsToBuild = entityViews;
  29. }
  30. }
  31. }