ITargetManager.cs 508 B

1234567891011121314151617181920212223
  1. // MIT License
  2. // https://gitlab.com/ilnprj
  3. // Copyright (c) 2020 ilnprj
  4. using System;
  5. using System.Collections.Generic;
  6. namespace RadarComponents
  7. {
  8. /// <summary>
  9. /// Interface for Target Manager base functional
  10. /// </summary>
  11. public interface ITargetManager
  12. {
  13. event Action<ITarget> onAddTarget;
  14. event Action<ITarget> onRemoveTarget;
  15. List<ITarget> Targets { get; }
  16. void AddTarget(ITarget target);
  17. void RemoveTarget(ITarget target);
  18. }
  19. }