Remove combat mode component reference (#15206)
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
using Content.Shared.CombatMode;
|
||||
|
||||
namespace Content.Server.CombatMode
|
||||
{
|
||||
/// <summary>
|
||||
/// Stores whether an entity is in "combat mode"
|
||||
/// This is used to differentiate between regular item interactions or
|
||||
/// using *everything* as a weapon.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[ComponentReference(typeof(SharedCombatModeComponent))]
|
||||
public sealed class CombatModeComponent : SharedCombatModeComponent
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -11,10 +11,10 @@ namespace Content.Server.CombatMode
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
SubscribeLocalEvent<SharedCombatModeComponent, ComponentGetState>(OnGetState);
|
||||
SubscribeLocalEvent<CombatModeComponent, ComponentGetState>(OnGetState);
|
||||
}
|
||||
|
||||
private void OnGetState(EntityUid uid, SharedCombatModeComponent component, ref ComponentGetState args)
|
||||
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