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

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

Binary improvements

File size: 682 bytes
RevLine 
[224]1using AllocsFixes.MapRendering;
2using System;
3using System.IO;
4using System.Collections.Generic;
5
6namespace AllocsFixes.CustomCommands
7{
[230]8 public class RenderMap : ConsoleCmdAbstract
[224]9 {
[230]10 public override string GetDescription ()
[224]11 {
12 return "render the current map to a file";
13 }
14
[230]15 public override string[] GetCommands ()
[224]16 {
[230]17 return new string[] { "rendermap" };
[224]18 }
19
[230]20 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo)
[224]21 {
22 try {
23 AllocsFixes.MapRendering.MapRendering.Instance.RenderFullMap ();
24
[230]25 SdtdConsole.Instance.Output ("Render map done");
[224]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.