mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
76 lines
2.0 KiB
C#
76 lines
2.0 KiB
C#
using System;
|
|
|
|
namespace Robust.Shared.Configuration
|
|
{
|
|
/// <summary>
|
|
/// Extra flags for changing the behavior of a config var.
|
|
/// </summary>
|
|
[Flags]
|
|
public enum CVar : short
|
|
{
|
|
/// <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 server.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This is intended to aid shared code.
|
|
/// </remarks>
|
|
CLIENTONLY = 128,
|
|
|
|
/// <summary>
|
|
/// CVar contains sensitive data that should not be accidentally leaked.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This currently hides the content of the cvar in the "cvar" command completions.
|
|
/// </remarks>
|
|
CONFIDENTIAL = 256,
|
|
|
|
/// <summary>
|
|
/// Only the client can change this variable.
|
|
/// </summary>
|
|
CLIENT = 512,
|
|
}
|
|
}
|