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
|
|
|
|
{
|
2021-10-27 18:10:40 +02:00
|
|
|
|
#pragma warning disable 618
|
2020-12-07 14:52:55 +01:00
|
|
|
|
public class MobStateChangedMessage : ComponentMessage
|
2021-10-27 18:10:40 +02:00
|
|
|
|
#pragma warning restore 618
|
2020-12-07 14:52:55 +01:00
|
|
|
|
{
|
|
|
|
|
|
public MobStateChangedMessage(
|
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;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public IEntity Entity => Component.Owner;
|
|
|
|
|
|
|
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; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|