Files
tbd-station-14/Content.Shared/MobState/MobStateChangedEvent.cs
2022-05-13 17:59:03 +10:00

27 lines
695 B
C#

using Content.Shared.MobState.Components;
using Content.Shared.MobState.State;
namespace Content.Shared.MobState
{
public sealed class MobStateChangedEvent : EntityEventArgs
{
public MobStateChangedEvent(
MobStateComponent component,
IMobState? oldMobState,
IMobState currentMobState)
{
Component = component;
OldMobState = oldMobState;
CurrentMobState = currentMobState;
}
public EntityUid Entity => Component.Owner;
public MobStateComponent Component { get; }
public IMobState? OldMobState { get; }
public IMobState CurrentMobState { get; }
}
}