| 1234567891011121314151617181920212223242526272829303132333435363738 |
- using Content.Shared.NPC.Prototypes;
- using Content.Shared.Roles;
- using Robust.Shared.Prototypes;
- namespace Content.Server.Spawners.Components;
- [RegisterComponent]
- public sealed partial class SpawnPointComponent : Component, ISpawnPoint
- {
- [DataField("job_id")]
- public ProtoId<JobPrototype>? Job;
- /// <summary>
- /// The faction that this spawn point applies to
- /// Remember to set SpawnType to Faction!
- /// </summary>
- [DataField("faction")]
- public ProtoId<NpcFactionPrototype>? Faction;
- /// <summary>
- /// The type of spawn point
- /// </summary>
- [DataField("spawn_type"), ViewVariables(VVAccess.ReadWrite)]
- public SpawnPointType SpawnType { get; set; } = SpawnPointType.Unset;
- public override string ToString()
- {
- return $"{Job} {SpawnType}";
- }
- }
- public enum SpawnPointType
- {
- Unset = 0,
- LateJoin,
- Job,
- Observer,
- Faction,
- }
|