Files
tbd-station-14/Content.Server/CombatMode/CombatModeSystem.cs
2023-04-08 13:16:48 -07:00

23 lines
643 B
C#

using Content.Shared.CombatMode;
using JetBrains.Annotations;
using Robust.Shared.GameStates;
namespace Content.Server.CombatMode
{
[UsedImplicitly]
public sealed class CombatModeSystem : SharedCombatModeSystem
{
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<CombatModeComponent, ComponentGetState>(OnGetState);
}
private void OnGetState(EntityUid uid, CombatModeComponent component, ref ComponentGetState args)
{
args.State = new CombatModeComponentState(component.IsInCombatMode, component.ActiveZone);
}
}
}