mirror of
https://github.com/space-wizards/RobustToolboxTemplateSingleplayer.git
synced 2026-02-10 16:24:49 -05:00
Initial commit.
This commit is contained in:
commit
9ca3fc37b1
15 changed files with 1015 additions and 0 deletions
21
Template.Game/GameConfigVars.cs
Normal file
21
Template.Game/GameConfigVars.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using Robust.Shared;
|
||||
using Robust.Shared.Configuration;
|
||||
|
||||
namespace Template.Game
|
||||
{
|
||||
// DEVNOTE: This is the same as SS14's CCVars. Except it's not named CCVars as that name is
|
||||
// hot garbage.
|
||||
[CVarDefs]
|
||||
public sealed class GameConfigVars: CVars
|
||||
{
|
||||
// Declare persistent game config variables here.
|
||||
// ```
|
||||
// public static readonly CVarDef<SerializableType>
|
||||
// VariableName = CVarDef.Create("namespace.varname", default_value, CVar.TYPE | CVar.OTHERTYPE)
|
||||
// ```
|
||||
// This is a good spot to store your database config, among other things.
|
||||
|
||||
public static readonly CVarDef<bool>
|
||||
DummyCVarForTemplate = CVarDef.Create("dummy.whydoineedthis", true, CVar.ARCHIVE);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue