mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
* Some stuff for auth * Holy crap auth works * Enable encryption even if no auth token is provided. It's still possible that the public key was retrieved over HTTPS via the status API, in which case it will be secure. * Fix integration test compile. * Secure CVar API. * Literally rewrite the auth protocol to be minecraft's. * Better exception tolerance in server handshake. * Auth works from launcher. * Fix some usages of UserID instead of UserName * Fix auth.server CVar * Kick existing connection if same account connects twice. * Username assignment, guest session distinguishing. * Necessary work to make bans work. * Expose LoginType to OnConnecting. * Fixing tests and warnings.
68 lines
1.7 KiB
C#
68 lines
1.7 KiB
C#
using System;
|
|
|
|
namespace Robust.Shared.Configuration
|
|
{
|
|
/// <summary>
|
|
/// Extra flags for changing the behavior of a config var.
|
|
/// </summary>
|
|
[Flags]
|
|
public enum CVar
|
|
{
|
|
/// <summary>
|
|
/// No special flags.
|
|
/// </summary>
|
|
NONE = 0,
|
|
|
|
/// <summary>
|
|
/// Debug vars that are considered 'cheating' to change.
|
|
/// </summary>
|
|
CHEAT = 1,
|
|
|
|
/// <summary>
|
|
/// Only the server can change this variable.
|
|
/// </summary>
|
|
SERVER = 2,
|
|
|
|
/// <summary>
|
|
/// This can only be changed when not connected to a server.
|
|
/// </summary>
|
|
NOT_CONNECTED = 4,
|
|
|
|
/// <summary>
|
|
/// Changing this var syncs between clients and server.
|
|
/// </summary>
|
|
REPLICATED = 8,
|
|
|
|
/// <summary>
|
|
/// Non-default values are saved to the configuration file.
|
|
/// </summary>
|
|
ARCHIVE = 16,
|
|
|
|
/// <summary>
|
|
/// Changing this var on the server notifies all clients, does nothing client-side.
|
|
/// </summary>
|
|
NOTIFY = 32,
|
|
|
|
/// <summary>
|
|
/// Ignore registration of this cvar on the client.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This is intended to aid shared code.
|
|
/// </remarks>
|
|
SERVERONLY = 64,
|
|
|
|
/// <summary>
|
|
/// Ignore registration of this cvar on the client.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This is intended to aid shared code.
|
|
/// </remarks>
|
|
CLIENTONLY = 128,
|
|
|
|
/// <summary>
|
|
/// This var has to kept secure and may not be accessed by content.
|
|
/// </summary>
|
|
SECURE = 256
|
|
}
|
|
}
|