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.

SingleNodeEngine.cs 471B

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
123456789101112131415161718192021
  1. using Svelto.ECS.Internal;
  2. namespace Svelto.ECS
  3. {
  4. public abstract class SingleNodeEngine<TNodeType> : INodeEngine
  5. where TNodeType : class, INode
  6. {
  7. public void Add(INode obj)
  8. {
  9. Add((TNodeType) obj);
  10. }
  11. public void Remove(INode obj)
  12. {
  13. Remove((TNodeType) obj);
  14. }
  15. protected abstract void Add(TNodeType node);
  16. protected abstract void Remove(TNodeType node);
  17. }
  18. }