mirror of
https://github.com/space-wizards/RobustToolboxTemplate.git
synced 2026-10-24 06:12:50 -04:00
Update template to latest RobustToolbox version.
- Converts template to use file-scoped namespaces. - Add manifest.yml and comments for it.
This commit is contained in:
parent
b417f4355e
commit
729c2a6206
18 changed files with 197 additions and 272 deletions
|
|
@ -1,21 +1,20 @@
|
|||
using Robust.Shared;
|
||||
using Robust.Shared.Configuration;
|
||||
|
||||
namespace Content.Shared
|
||||
{
|
||||
// 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.
|
||||
namespace Content.Shared;
|
||||
|
||||
public static readonly CVarDef<bool>
|
||||
DummyCVarForTemplate = CVarDef.Create("dummy.whydoineedthis", true, CVar.ARCHIVE);
|
||||
}
|
||||
// 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