26 lines
780 B
C#
26 lines
780 B
C#
using Content.Shared.GameObjects.Components.Damage;
|
|
using Content.Shared.GameObjects.Components.Mobs;
|
|
using Content.Shared.GameObjects.Components.Mobs.State;
|
|
using Robust.Client.GameObjects;
|
|
using Robust.Shared.Interfaces.GameObjects;
|
|
|
|
namespace Content.Client.GameObjects.Components.Mobs.State
|
|
{
|
|
public class NormalState : SharedNormalState
|
|
{
|
|
public override void EnterState(IEntity entity)
|
|
{
|
|
if (entity.TryGetComponent(out AppearanceComponent appearance))
|
|
{
|
|
appearance.SetData(DamageStateVisuals.State, DamageState.Alive);
|
|
}
|
|
|
|
UpdateState(entity);
|
|
}
|
|
|
|
public override void ExitState(IEntity entity) { }
|
|
|
|
public override void UpdateState(IEntity entity) { }
|
|
}
|
|
}
|