Files
tbd-station-14/Content.Shared/MobState/MobStateChangedEvent.cs
2022-02-16 18:23:23 +11:00

28 lines
728 B
C#

using Content.Shared.MobState.Components;
using Content.Shared.MobState.State;
using Robust.Shared.GameObjects;
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; }
}
}