* Holy crap auth works * Fix some usages of UserID instead of UserName * Refactor preferences. They be non-async now. Also faster. * Rename DbContext. * Guest username assignment. * Fix saving of profiles. * Don't store data for guests. * Fix generating invalid random colors. * Don't allow dumb garbage for char preferences. * Bans. * Lol forgot to fill out the command description. * Connection log. * Rename all the tables and columns to be snake_case. * Re-do migrations. * Fixing tests and warnings. * Update submodule
20 lines
686 B
C#
20 lines
686 B
C#
using System.Collections.Generic;
|
|
using Content.Shared.Preferences;
|
|
using Robust.Server.Interfaces.Player;
|
|
using Robust.Shared.Network;
|
|
|
|
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<NetUserId, HumanoidCharacterProfile> readyProfiles;
|
|
}
|
|
}
|