mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 16:17:27 +00:00
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
30 lines
853 B
C#
30 lines
853 B
C#
using Content.Shared.Mobs.Systems;
|
|
|
|
namespace Content.Shared.Mobs.Components;
|
|
|
|
/// <summary>
|
|
/// Used for specifying actions that should be automatically added/removed on mob state transitions
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Mostly for crit-specific actions.
|
|
/// </remarks>
|
|
/// <see cref="MobStateActionsSystem"/>
|
|
[RegisterComponent]
|
|
public sealed partial class MobStateActionsComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Specifies a list of actions that should be available if a mob is in a given state.
|
|
/// </summary>
|
|
/// <example>
|
|
/// actions:
|
|
/// Critical:
|
|
/// - ActionCritSuccumb
|
|
/// Alive:
|
|
/// - ActionAnimalLayEgg
|
|
/// </example>
|
|
[DataField("actions")]
|
|
public Dictionary<MobState, List<string>> Actions = new();
|
|
|
|
[DataField] public List<EntityUid> GrantedActions = new();
|
|
}
|