2021-11-08 15:11:58 +01:00
|
|
|
|
using Content.Shared.MobState.Components;
|
|
|
|
|
|
using Content.Shared.MobState.State;
|
2020-12-07 14:52:55 +01:00
|
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
|
namespace Content.Shared.MobState
|
2020-12-07 14:52:55 +01:00
|
|
|
|
{
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class MobStateChangedEvent : EntityEventArgs
|
2020-12-07 14:52:55 +01:00
|
|
|
|
{
|
2021-12-05 14:08:35 +11:00
|
|
|
|
public MobStateChangedEvent(
|
2021-11-08 15:11:58 +01:00
|
|
|
|
MobStateComponent component,
|
2020-12-07 14:52:55 +01:00
|
|
|
|
IMobState? oldMobState,
|
|
|
|
|
|
IMobState currentMobState)
|
|
|
|
|
|
{
|
|
|
|
|
|
Component = component;
|
|
|
|
|
|
OldMobState = oldMobState;
|
|
|
|
|
|
CurrentMobState = currentMobState;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2021-12-04 12:59:44 +01:00
|
|
|
|
public EntityUid Entity => Component.Owner;
|
2020-12-07 14:52:55 +01:00
|
|
|
|
|
2021-11-08 15:11:58 +01:00
|
|
|
|
public MobStateComponent Component { get; }
|
2020-12-07 14:52:55 +01:00
|
|
|
|
|
|
|
|
|
|
public IMobState? OldMobState { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public IMobState CurrentMobState { get; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|