Line | |
---|
1 | using AllocsFixes.MapRendering;
|
---|
2 | using System;
|
---|
3 | using System.IO;
|
---|
4 | using System.Collections.Generic;
|
---|
5 |
|
---|
6 | namespace 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.