source: binary-improvements/MapRendering/Commands/RenderMap.cs@ 393

Last change on this file since 393 was 359, checked in by alloc, 5 years ago

Removed unnecessary try-catch-blocks from commands (command handler catches exceptions anyway and provides more detailed output)

File size: 515 bytes
RevLine 
[224]1using System;
2using System.Collections.Generic;
3
[325]4namespace AllocsFixes.CustomCommands {
5 public class RenderMap : ConsoleCmdAbstract {
6 public override string GetDescription () {
[224]7 return "render the current map to a file";
8 }
9
[325]10 public override string[] GetCommands () {
11 return new[] {"rendermap"};
[224]12 }
13
[325]14 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) {
[359]15 MapRendering.MapRendering.Instance.RenderFullMap ();
[224]16
[359]17 SdtdConsole.Instance.Output ("Render map done");
[224]18 }
19 }
[325]20}
Note: See TracBrowser for help on using the repository browser.