2021-07-17 02:37:09 +02:00
|
|
|
|
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
|
|
|
|
{
|
|
|
|
|
|
public class MobStateChangedMessage : ComponentMessage
|
|
|
|
|
|
{
|
|
|
|
|
|
public MobStateChangedMessage(
|
|
|
|
|
|
IMobStateComponent component,
|
|
|
|
|
|
IMobState? oldMobState,
|
|
|
|
|
|
IMobState currentMobState)
|
|
|
|
|
|
{
|
|
|
|
|
|
Component = component;
|
|
|
|
|
|
OldMobState = oldMobState;
|
|
|
|
|
|
CurrentMobState = currentMobState;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public IEntity Entity => Component.Owner;
|
|
|
|
|
|
|
|
|
|
|
|
public IMobStateComponent Component { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public IMobState? OldMobState { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public IMobState CurrentMobState { get; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|