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

Last change on this file since 261 was 230, checked in by alloc, 10 years ago

Binary improvements

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