Re-organize all projects (#4166)
This commit is contained in:
27
Content.Shared/MobState/MobStateChangedMessage.cs
Normal file
27
Content.Shared/MobState/MobStateChangedMessage.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
#nullable enable
|
||||
using Content.Shared.MobState.State;
|
||||
using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Shared.MobState
|
||||
{
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user