source: binary-improvements/7dtd-server-fixes/src/CustomCommands/RenderMap.cs@ 161

Last change on this file since 161 was 130, checked in by alloc, 10 years ago

Fixes

File size: 708 bytes
RevLine 
[130]1using AllocsFixes.MapRendering;
2using System;
3using System.IO;
4using System.Collections.Generic;
5using UnityEngine;
6
7namespace AllocsFixes.CustomCommands
8{
9 public class RenderMap : ConsoleCommand
10 {
11 public RenderMap (ConsoleSdtd cons) : base(cons)
12 {
13 }
14
15 public override string Description ()
16 {
17 return "render the current map to a file";
18 }
19
20 public override string[] Names ()
21 {
22 return new string[] { "rendermap", "rm" };
23 }
24
25 public override void Run (string[] _params)
26 {
27 try {
28 AllocsFixes.MapRendering.MapRendering.Instance.RenderFullMap ();
29
30 m_Console.SendResult ("Render map done");
31 } catch (Exception e) {
32 Log.Out ("Error in RenderMap.Run: " + e);
33 }
34 }
35 }
36}
Note: See TracBrowser for help on using the repository browser.