SharedRadarConsoleSystem.cs 570 B

12345678910111213141516171819202122
  1. using Content.Shared.Shuttles.Components;
  2. namespace Content.Shared.Shuttles.Systems;
  3. public abstract class SharedRadarConsoleSystem : EntitySystem
  4. {
  5. public const float DefaultMaxRange = 256f;
  6. protected virtual void UpdateState(EntityUid uid, RadarConsoleComponent component)
  7. {
  8. }
  9. public void SetRange(EntityUid uid, float value, RadarConsoleComponent component)
  10. {
  11. if (component.MaxRange.Equals(value))
  12. return;
  13. component.MaxRange = value;
  14. Dirty(uid, component);
  15. UpdateState(uid, component);
  16. }
  17. }