Changeset 230 for binary-improvements/MapRendering/Commands/RenderMap.cs
- Timestamp:
- Apr 18, 2015, 4:27:57 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Commands/RenderMap.cs
r224 r230 6 6 namespace AllocsFixes.CustomCommands 7 7 { 8 public class RenderMap : ConsoleC ommand8 public class RenderMap : ConsoleCmdAbstract 9 9 { 10 public RenderMap (ConsoleSdtd cons) : base(cons) 11 { 12 } 13 14 public override string Description () 10 public override string GetDescription () 15 11 { 16 12 return "render the current map to a file"; 17 13 } 18 14 19 public override string[] Names ()15 public override string[] GetCommands () 20 16 { 21 return new string[] { "rendermap" , "rm"};17 return new string[] { "rendermap" }; 22 18 } 23 19 24 public override void Run (string[] _params)20 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) 25 21 { 26 22 try { 27 23 AllocsFixes.MapRendering.MapRendering.Instance.RenderFullMap (); 28 24 29 m_Console.SendResult ("Render map done");25 SdtdConsole.Instance.Output ("Render map done"); 30 26 } catch (Exception e) { 31 27 Log.Out ("Error in RenderMap.Run: " + e);
Note:
See TracChangeset
for help on using the changeset viewer.