source: binary-improvements2/MapRendering/src/Commands/RenderMap.cs@ 428

Last change on this file since 428 was 423, checked in by alloc, 20 months ago

Fixed: MapRenderer always enabled

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