mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-13 04:11:13 +03:00
* Add components to require uncovered mouth and specific mob states for actions * Address reviews * address reviews * added comments --------- Co-authored-by: Velken <8467292+Velken@users.noreply.github.com>
22 lines
665 B
C#
22 lines
665 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 PopupType? Popup = PopupType.SmallCaution;
|
|
}
|