mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-22 00:01:23 +03:00
* initially works i think * yeah * pulled these numbers outta my ass * text * silly * fixy fix * fix * This sure is a videogame * init test fuck everything * sprites * fix dirty * query * another query * craftable changeling sting * remove todo * \n * doc
28 lines
880 B
C#
28 lines
880 B
C#
using Content.Shared.Mobs.Systems;
|
|
using Content.Shared.Popups;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Mobs.Components;
|
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState]
|
|
[Access(typeof(MobStateSystem))]
|
|
public sealed partial class ActionRequireMobStateComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The required MobState for the action.
|
|
/// </summary>
|
|
[DataField(required: true), AutoNetworkedField]
|
|
public HashSet<MobState> States = new();
|
|
|
|
/// <summary>
|
|
/// The type of Popup to be used.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public LocId? FailReason = "mob-state-action-requires-state";
|
|
|
|
/// <summary>
|
|
/// The type of the popup the fail reason should show as.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public PopupType FailReasonPopupType = PopupType.SmallCaution;
|
|
}
|