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.

14 lines
429B

  1. namespace Svelto.ECS
  2. {
  3. public abstract class SingleEntityEngine<T> : IHandleEntityStructEngine<T> where T : IEntityStruct
  4. {
  5. public void AddInternal(ref T entityView)
  6. { Add(ref entityView); }
  7. public void RemoveInternal(ref T entityView)
  8. { Remove(ref entityView); }
  9. protected abstract void Add(ref T entityView);
  10. protected abstract void Remove(ref T entityView);
  11. }
  12. }