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

Last change on this file since 227 was 224, checked in by alloc, 10 years ago

A11 preps

File size: 689 bytes
Line 
1using AllocsFixes.MapRendering;
2using System;
3using System.IO;
4using System.Collections.Generic;
5
6namespace AllocsFixes.CustomCommands
7{
8 public class RenderMap : ConsoleCommand
9 {
10 public RenderMap (ConsoleSdtd cons) : base(cons)
11 {
12 }
13
14 public override string Description ()
15 {
16 return "render the current map to a file";
17 }
18
19 public override string[] Names ()
20 {
21 return new string[] { "rendermap", "rm" };
22 }
23
24 public override void Run (string[] _params)
25 {
26 try {
27 AllocsFixes.MapRendering.MapRendering.Instance.RenderFullMap ();
28
29 m_Console.SendResult ("Render map done");
30 } catch (Exception e) {
31 Log.Out ("Error in RenderMap.Run: " + e);
32 }
33 }
34 }
35}
Note: See TracBrowser for help on using the repository browser.