* Allow game presets to disallow latejoining * Update Content.Server/GameTicking/GameTicker.cs Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com> Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
19 lines
654 B
C#
19 lines
654 B
C#
using System.Collections.Generic;
|
|
using Content.Shared.Preferences;
|
|
using Robust.Server.Interfaces.Player;
|
|
|
|
namespace Content.Server.GameTicking
|
|
{
|
|
/// <summary>
|
|
/// A round-start setup preset, such as which antagonists to spawn.
|
|
/// </summary>
|
|
public abstract class GamePreset
|
|
{
|
|
public abstract bool Start(IReadOnlyList<IPlayerSession> readyPlayers, bool force = false);
|
|
public virtual string ModeTitle => "Sandbox";
|
|
public virtual string Description => "Secret!";
|
|
public virtual bool DisallowLateJoin => false;
|
|
public Dictionary<string, HumanoidCharacterProfile> readyProfiles;
|
|
}
|
|
}
|