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

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