6
StarHorizon_Public/Content.Shared/Shuttles/Systems/SharedRadarConsoleSystem.cs
2025-12-13 13:46:17 +03:00

23 lines
570 B
C#

using Content.Shared.Shuttles.Components;
namespace Content.Shared.Shuttles.Systems;
public abstract class SharedRadarConsoleSystem : EntitySystem
{
public const float DefaultMaxRange = 256f;
protected virtual void UpdateState(EntityUid uid, RadarConsoleComponent component)
{
}
public void SetRange(EntityUid uid, float value, RadarConsoleComponent component)
{
if (component.MaxRange.Equals(value))
return;
component.MaxRange = value;
Dirty(uid, component);
UpdateState(uid, component);
}
}