1v1 me first to 31 no powerups [Deathmatch Gamemode] (#19467)
Co-authored-by: Kara <lunarautomaton6@gmail.com>
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using Robust.Shared.Network;
|
||||
|
||||
namespace Content.Server.GameTicking.Rules.Components;
|
||||
|
||||
/// <summary>
|
||||
/// This is used for globally tracking players that need to be respawned.
|
||||
/// Used on gamerule entities.
|
||||
/// </summary>
|
||||
[RegisterComponent, Access(typeof(RespawnRuleSystem))]
|
||||
public sealed partial class RespawnTrackerComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// A list of the people that should be respawned.
|
||||
/// Used to make sure that we don't respawn aghosts or observers.
|
||||
/// </summary>
|
||||
[DataField("players")]
|
||||
public HashSet<NetUserId> Players = new();
|
||||
|
||||
/// <summary>
|
||||
/// The delay between dying and respawning.
|
||||
/// </summary>
|
||||
[DataField("respawnDelay")]
|
||||
public TimeSpan RespawnDelay = TimeSpan.Zero;
|
||||
|
||||
/// <summary>
|
||||
/// A dictionary of player netuserids and when they will respawn.
|
||||
/// </summary>
|
||||
[DataField("respawnQueue")]
|
||||
public Dictionary<NetUserId, TimeSpan> RespawnQueue = new();
|
||||
}
|
||||
Reference in New Issue
Block a user