Line | |
---|
1 | using System.Collections.Generic;
|
---|
2 | using JetBrains.Annotations;
|
---|
3 |
|
---|
4 | namespace MapRendering.Commands {
|
---|
5 | [UsedImplicitly]
|
---|
6 | public class RenderMap : ConsoleCmdAbstract {
|
---|
7 | protected override string getDescription () {
|
---|
8 | return "render the current map to a file";
|
---|
9 | }
|
---|
10 |
|
---|
11 | protected override string[] getCommands () {
|
---|
12 | return new[] {"rendermap"};
|
---|
13 | }
|
---|
14 |
|
---|
15 | public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) {
|
---|
16 | if (!MapRenderer.HasInstance) {
|
---|
17 | SdtdConsole.Instance.Output ("Renderer not enabled");
|
---|
18 | return;
|
---|
19 | }
|
---|
20 |
|
---|
21 | MapRenderer.Instance.RenderFullMap ();
|
---|
22 |
|
---|
23 | SdtdConsole.Instance.Output ("Render map done");
|
---|
24 | }
|
---|
25 | }
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.