Revert "Gamerule Entities" (#15724)
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
using Content.Server.Traitor;
|
||||
using Content.Shared.Preferences;
|
||||
using Content.Shared.Roles;
|
||||
using Robust.Server.Player;
|
||||
using Robust.Shared.Audio;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
namespace Content.Server.GameTicking.Rules.Components;
|
||||
|
||||
[RegisterComponent, Access(typeof(TraitorRuleSystem))]
|
||||
public sealed class TraitorRuleComponent : Component
|
||||
{
|
||||
public readonly SoundSpecifier AddedSound = new SoundPathSpecifier("/Audio/Misc/tatoralert.ogg");
|
||||
public List<TraitorRole> Traitors = new();
|
||||
|
||||
[DataField("traitorPrototypeId", customTypeSerializer: typeof(PrototypeIdSerializer<AntagPrototype>))]
|
||||
public string TraitorPrototypeId = "Traitor";
|
||||
|
||||
public int TotalTraitors => Traitors.Count;
|
||||
public string[] Codewords = new string[3];
|
||||
|
||||
public enum SelectionState
|
||||
{
|
||||
WaitingForSpawn = 0,
|
||||
ReadyToSelect = 1,
|
||||
SelectionMade = 2,
|
||||
}
|
||||
|
||||
public SelectionState SelectionStatus = SelectionState.WaitingForSpawn;
|
||||
public TimeSpan AnnounceAt = TimeSpan.Zero;
|
||||
public Dictionary<IPlayerSession, HumanoidCharacterProfile> StartCandidates = new();
|
||||
}
|
||||
Reference in New Issue
Block a user