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

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

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

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