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