SpeciesRequirmentComponent.cs 522 B

123456789101112131415
  1. using Content.Server.Objectives.Systems;
  2. using Content.Shared.Humanoid.Prototypes;
  3. using Robust.Shared.Prototypes;
  4. namespace Content.Server.Objectives.Components;
  5. /// <summary>
  6. /// Requires that the player's species matches a whitelist.
  7. /// </summary>
  8. [RegisterComponent, Access(typeof(SpeciesRequirementSystem))]
  9. public sealed partial class SpeciesRequirementComponent : Component
  10. {
  11. [DataField(required: true), ViewVariables(VVAccess.ReadWrite)]
  12. public List<ProtoId<SpeciesPrototype>> AllowedSpecies = new();
  13. }