CatStation/Content.Shared/Actions/ActionGrantComponent.cs
ScarKy0 091180655d
Changeling Chemicals (#45239)
* 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
2026-08-19 19:25:16 +00:00

29 lines
978 B
C#

using Robust.Shared.GameStates;
using Robust.Shared.Prototypes;
namespace Content.Shared.Actions;
/// <summary>
/// Grants actions on MapInit and removes them on shutdown
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(ActionGrantSystem))]
public sealed partial class ActionGrantComponent : Component
{
/// <summary>
/// The list of actions to add to this entity on <see cref="MapInitEvent"/>.
/// </summary>
[DataField(required: true), AutoNetworkedField, AlwaysPushInheritance]
public List<EntProtoId> Actions = new();
/// <summary>
/// The EntityUid of the actions added by this component.
/// </summary>
[DataField, AutoNetworkedField]
public List<EntityUid> ActionEntities = new();
/// <summary>
/// Whether the actions should be removed on <see cref="ComponentShutdown"/>.
/// </summary>
[DataField, AutoNetworkedField]
public bool RemoveOnShutdown = true;
}