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.

19 lines
446B

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