-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,65 @@ | ||
using System; | ||
using Robust.Shared.Configuration; | ||
|
||
namespace OpenDreamShared { | ||
[CVarDefs] | ||
public abstract class OpenDreamCVars { | ||
public static readonly CVarDef<string> JsonPath = | ||
CVarDef.Create("opendream.json_path", String.Empty, CVar.SERVERONLY); | ||
|
||
public static readonly CVarDef<int> DownloadTimeout = | ||
CVarDef.Create("opendream.download_timeout", 30, CVar.CLIENTONLY); | ||
|
||
public static readonly CVarDef<bool> AlwaysShowExceptions = | ||
CVarDef.Create("opendream.always_show_exceptions", false, CVar.SERVERONLY); | ||
|
||
public static readonly CVarDef<int> DebugAdapterLaunched = | ||
CVarDef.Create("opendream.debug_adapter_launched", 0, CVar.SERVERONLY); | ||
|
||
public static readonly CVarDef<bool> SpoofIEUserAgent = | ||
CVarDef.Create("opendream.spoof_ie_user_agent", true, CVar.CLIENTONLY); | ||
|
||
public static readonly CVarDef<string> WorldParams = | ||
CVarDef.Create("opendream.world_params", string.Empty, CVar.SERVERONLY); | ||
|
||
public static readonly CVarDef<ushort> TopicPort = | ||
CVarDef.Create<ushort>("opendream.topic_port", 25567, CVar.SERVERONLY); | ||
|
||
/* | ||
* INFOLINKS | ||
*/ | ||
|
||
/// <summary> | ||
/// Link to Discord server to show in the launcher. | ||
/// </summary> | ||
public static readonly CVarDef<string> InfoLinksDiscord = | ||
CVarDef.Create("infolinks.discord", "", CVar.SERVER | CVar.REPLICATED); | ||
|
||
/// <summary> | ||
/// Link to forum to show in the launcher. | ||
/// </summary> | ||
public static readonly CVarDef<string> InfoLinksForum = | ||
CVarDef.Create("infolinks.forum", "", CVar.SERVER | CVar.REPLICATED); | ||
|
||
/// <summary> | ||
/// Link to GitHub page to show in the launcher. | ||
/// </summary> | ||
public static readonly CVarDef<string> InfoLinksGithub = | ||
CVarDef.Create("infolinks.github", "", CVar.SERVER | CVar.REPLICATED); | ||
|
||
/// <summary> | ||
/// Link to website to show in the launcher. | ||
/// </summary> | ||
public static readonly CVarDef<string> InfoLinksWebsite = | ||
CVarDef.Create("infolinks.website", "", CVar.SERVER | CVar.REPLICATED); | ||
|
||
/// <summary> | ||
/// Link to wiki to show in the launcher. | ||
/// </summary> | ||
public static readonly CVarDef<string> InfoLinksWiki = | ||
CVarDef.Create("infolinks.wiki", "", CVar.SERVER | CVar.REPLICATED); | ||
} | ||
namespace OpenDreamShared; | ||
[CVarDefs] | ||
Check warning Code scanning / InspectCode Incorrect blank lines: Blank lines are missing elsewhere Warning
Blank lines are missing, expected minimum 1 instead of 0
|
||
public abstract class OpenDreamCVars { | ||
public static readonly CVarDef<string> JsonPath = | ||
CVarDef.Create("opendream.json_path", String.Empty, CVar.SERVERONLY); | ||
Check notice Code scanning / InspectCode Replace built-in type reference with a CLR type name or a keyword in static member access expressions Note
Built-in type reference is inconsistent with code style settings
|
||
|
||
public static readonly CVarDef<int> DownloadTimeout = | ||
CVarDef.Create("opendream.download_timeout", 30, CVar.CLIENTONLY); | ||
|
||
public static readonly CVarDef<bool> AlwaysShowExceptions = | ||
CVarDef.Create("opendream.always_show_exceptions", false, CVar.SERVERONLY); | ||
|
||
public static readonly CVarDef<int> DebugAdapterLaunched = | ||
CVarDef.Create("opendream.debug_adapter_launched", 0, CVar.SERVERONLY); | ||
|
||
public static readonly CVarDef<bool> SpoofIEUserAgent = | ||
Check warning Code scanning / InspectCode Inconsistent Naming Warning
Name 'SpoofIEUserAgent' does not match rule 'Static readonly fields (not private)'. Suggested name is 'SpoofIeUserAgent'.
|
||
CVarDef.Create("opendream.spoof_ie_user_agent", true, CVar.CLIENTONLY); | ||
|
||
public static readonly CVarDef<string> WorldParams = | ||
CVarDef.Create("opendream.world_params", string.Empty, CVar.SERVERONLY); | ||
|
||
public static readonly CVarDef<ushort> TopicPort = | ||
CVarDef.Create<ushort>("opendream.topic_port", 25567, CVar.SERVERONLY); | ||
|
||
public static readonly CVarDef<bool> TracyEnable = | ||
CVarDef.Create<bool>("opendream.enable_tracy", false, CVar.SERVERONLY); | ||
Check warning Code scanning / InspectCode Redundant type arguments of method Warning
Type argument specification is redundant
|
||
|
||
/* | ||
* INFOLINKS | ||
*/ | ||
|
||
/// <summary> | ||
/// Link to Discord server to show in the launcher. | ||
/// </summary> | ||
public static readonly CVarDef<string> InfoLinksDiscord = | ||
CVarDef.Create("infolinks.discord", "", CVar.SERVER | CVar.REPLICATED); | ||
|
||
/// <summary> | ||
/// Link to forum to show in the launcher. | ||
/// </summary> | ||
public static readonly CVarDef<string> InfoLinksForum = | ||
CVarDef.Create("infolinks.forum", "", CVar.SERVER | CVar.REPLICATED); | ||
|
||
/// <summary> | ||
/// Link to GitHub page to show in the launcher. | ||
/// </summary> | ||
public static readonly CVarDef<string> InfoLinksGithub = | ||
CVarDef.Create("infolinks.github", "", CVar.SERVER | CVar.REPLICATED); | ||
|
||
/// <summary> | ||
/// Link to website to show in the launcher. | ||
/// </summary> | ||
public static readonly CVarDef<string> InfoLinksWebsite = | ||
CVarDef.Create("infolinks.website", "", CVar.SERVER | CVar.REPLICATED); | ||
|
||
/// <summary> | ||
/// Link to wiki to show in the launcher. | ||
/// </summary> | ||
public static readonly CVarDef<string> InfoLinksWiki = | ||
CVarDef.Create("infolinks.wiki", "", CVar.SERVER | CVar.REPLICATED); | ||
|
||
} |