source: binary-improvements/MapRendering/Commands/RenderMap.cs@ 355

Last change on this file since 355 was 325, checked in by alloc, 6 years ago

Code style cleanup (mostly whitespace changes, enforcing braces, using cleanup)

File size: 604 bytes
RevLine 
[224]1using System;
2using System.Collections.Generic;
3
[325]4namespace AllocsFixes.CustomCommands {
5 public class RenderMap : ConsoleCmdAbstract {
6 public override string GetDescription () {
[224]7 return "render the current map to a file";
8 }
9
[325]10 public override string[] GetCommands () {
11 return new[] {"rendermap"};
[224]12 }
13
[325]14 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) {
[224]15 try {
[325]16 MapRendering.MapRendering.Instance.RenderFullMap ();
[224]17
[230]18 SdtdConsole.Instance.Output ("Render map done");
[224]19 } catch (Exception e) {
20 Log.Out ("Error in RenderMap.Run: " + e);
21 }
22 }
23 }
[325]24}
Note: See TracBrowser for help on using the repository browser.