- Timestamp:
- Sep 4, 2018, 1:00:48 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Commands/EnableRendering.cs
r230 r325 2 2 using System.Collections.Generic; 3 3 4 namespace AllocsFixes.CustomCommands 5 { 6 public class EnableRendering : ConsoleCmdAbstract 7 { 8 public override string GetDescription () 9 { 4 namespace AllocsFixes.CustomCommands { 5 public class EnableRendering : ConsoleCmdAbstract { 6 public override string GetDescription () { 10 7 return "enable/disable live map rendering"; 11 8 } 12 9 13 public override string[] GetCommands () 14 { 15 return new string[] { "enablerendering" }; 10 public override string[] GetCommands () { 11 return new[] {"enablerendering"}; 16 12 } 17 13 18 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) 19 { 14 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) { 20 15 try { 21 16 if (_params.Count != 1) { 22 SdtdConsole.Instance.Output ("Current state: " + AllocsFixes.MapRendering.MapRendering.renderingEnabled);17 SdtdConsole.Instance.Output ("Current state: " + MapRendering.MapRendering.renderingEnabled); 23 18 return; 24 19 } 25 20 26 AllocsFixes.MapRendering.MapRendering.renderingEnabled = _params[0].Equals("1");21 MapRendering.MapRendering.renderingEnabled = _params [0].Equals ("1"); 27 22 SdtdConsole.Instance.Output ("Set live map rendering to " + _params [0].Equals ("1")); 28 23 } catch (Exception e) {
Note:
See TracChangeset
for help on using the changeset viewer.