source: TFP-WebServer/MapRendering/src/Commands/RenderMap.cs@ 500

Last change on this file since 500 was 487, checked in by alloc, 5 months ago

1.1.0.1 Release for V 1.0

File size: 643 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 {
[487]7 public override string getDescription () {
[224]8 return "render the current map to a file";
9 }
10
[487]11 public 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.