6
StarHorizon_Public/Content.Shared/Actions/ActionGrantComponent.cs
2025-11-12 10:55:00 +03:00

18 lines
564 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
{
[DataField(required: true), AutoNetworkedField, AlwaysPushInheritance]
public List<EntProtoId> Actions = new();
[DataField, AutoNetworkedField]
public List<EntityUid> ActionEntities = new();
}