New indicators for combat mode (#15427)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -2,21 +2,19 @@ using Content.Shared.CombatMode;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Server.CombatMode
|
||||
namespace Content.Server.CombatMode;
|
||||
|
||||
public sealed class CombatModeSystem : SharedCombatModeSystem
|
||||
{
|
||||
[UsedImplicitly]
|
||||
public sealed class CombatModeSystem : SharedCombatModeSystem
|
||||
public override void Initialize()
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
base.Initialize();
|
||||
|
||||
SubscribeLocalEvent<CombatModeComponent, ComponentGetState>(OnGetState);
|
||||
}
|
||||
SubscribeLocalEvent<CombatModeComponent, ComponentGetState>(OnGetState);
|
||||
}
|
||||
|
||||
private void OnGetState(EntityUid uid, CombatModeComponent component, ref ComponentGetState args)
|
||||
{
|
||||
args.State = new CombatModeComponentState(component.IsInCombatMode, component.ActiveZone);
|
||||
}
|
||||
private void OnGetState(EntityUid uid, CombatModeComponent component, ref ComponentGetState args)
|
||||
{
|
||||
args.State = new CombatModeComponentState(component.IsInCombatMode, component.ActiveZone);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user