| Line |  | 
|---|
| 1 | using AllocsFixes.MapRendering; | 
|---|
| 2 | using System; | 
|---|
| 3 | using System.IO; | 
|---|
| 4 | using System.Collections.Generic; | 
|---|
| 5 |  | 
|---|
| 6 | namespace AllocsFixes.CustomCommands | 
|---|
| 7 | { | 
|---|
| 8 | public class RenderMap : ConsoleCmdAbstract | 
|---|
| 9 | { | 
|---|
| 10 | public override string GetDescription () | 
|---|
| 11 | { | 
|---|
| 12 | return "render the current map to a file"; | 
|---|
| 13 | } | 
|---|
| 14 |  | 
|---|
| 15 | public override string[] GetCommands () | 
|---|
| 16 | { | 
|---|
| 17 | return new string[] { "rendermap" }; | 
|---|
| 18 | } | 
|---|
| 19 |  | 
|---|
| 20 | public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) | 
|---|
| 21 | { | 
|---|
| 22 | try { | 
|---|
| 23 | AllocsFixes.MapRendering.MapRendering.Instance.RenderFullMap (); | 
|---|
| 24 |  | 
|---|
| 25 | SdtdConsole.Instance.Output ("Render map done"); | 
|---|
| 26 | } catch (Exception e) { | 
|---|
| 27 | Log.Out ("Error in RenderMap.Run: " + e); | 
|---|
| 28 | } | 
|---|
| 29 | } | 
|---|
| 30 | } | 
|---|
| 31 | } | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.