ActionGrantComponent.cs 564 B

1234567891011121314151617
  1. using Robust.Shared.GameStates;
  2. using Robust.Shared.Prototypes;
  3. namespace Content.Shared.Actions;
  4. /// <summary>
  5. /// Grants actions on MapInit and removes them on shutdown
  6. /// </summary>
  7. [RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(ActionGrantSystem))]
  8. public sealed partial class ActionGrantComponent : Component
  9. {
  10. [DataField(required: true), AutoNetworkedField, AlwaysPushInheritance]
  11. public List<EntProtoId> Actions = new();
  12. [DataField, AutoNetworkedField]
  13. public List<EntityUid> ActionEntities = new();
  14. }