6
StarHorizon_Public/Content.Server/Objectives/Components/SpeciesRequirmentComponent.cs
2025-11-03 10:15:18 +03:00

16 lines
522 B
C#

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