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