|
Last change
on this file since 416 was 359, checked in by alloc, 6 years ago |
|
Removed unnecessary try-catch-blocks from commands (command handler catches exceptions anyway and provides more detailed output)
|
|
File size:
515 bytes
|
| Line | |
|---|
| 1 | using System;
|
|---|
| 2 | using System.Collections.Generic;
|
|---|
| 3 |
|
|---|
| 4 | namespace 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.