27 lines
689 B
C#
27 lines
689 B
C#
|
|
#nullable enable
|
|||
|
|
using Robust.Shared.GameObjects;
|
|||
|
|
|
|||
|
|
namespace Content.Shared.GameObjects.Components.Mobs.State
|
|||
|
|
{
|
|||
|
|
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; }
|
|||
|
|
}
|
|||
|
|
}
|