source: binary-improvements2/MapRendering/Commands/EnableOpenIDDebug.cs@ 388

Last change on this file since 388 was 383, checked in by alloc, 2 years ago

Fixed a bunch of warnings

File size: 706 bytes
Line 
1using System.Collections.Generic;
2using AllocsFixes.NetConnections.Servers.Web;
3
4namespace AllocsFixes.CustomCommands {
5 public class EnableOpenIDDebug : ConsoleCmdAbstract {
6 public override string GetDescription () {
7 return "enable/disable OpenID debugging";
8 }
9
10 public override string[] GetCommands () {
11 return new[] {"openiddebug"};
12 }
13
14 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) {
15 if (_params.Count != 1) {
16 SdtdConsole.Instance.Output ("Current state: " + OpenID.debugOpenId);
17 return;
18 }
19
20 OpenID.debugOpenId = _params [0].Equals ("1");
21 SdtdConsole.Instance.Output ("Set OpenID debugging to " + _params [0].Equals ("1"));
22 }
23 }
24}
Note: See TracBrowser for help on using the repository browser.