Last change
on this file since 418 was 405, checked in by alloc, 22 months ago |
Refactored console commands for A21 caching
|
File size:
535 bytes
|
Rev | Line | |
---|
[224] | 1 | using System.Collections.Generic;
|
---|
[391] | 2 | using JetBrains.Annotations;
|
---|
[224] | 3 |
|
---|
[391] | 4 | namespace MapRendering.Commands {
|
---|
| 5 | [UsedImplicitly]
|
---|
[325] | 6 | public class RenderMap : ConsoleCmdAbstract {
|
---|
[405] | 7 | protected override string getDescription () {
|
---|
[224] | 8 | return "render the current map to a file";
|
---|
| 9 | }
|
---|
| 10 |
|
---|
[405] | 11 | protected override string[] getCommands () {
|
---|
[325] | 12 | return new[] {"rendermap"};
|
---|
[224] | 13 | }
|
---|
| 14 |
|
---|
[325] | 15 | public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) {
|
---|
[391] | 16 | MapRenderer.Instance.RenderFullMap ();
|
---|
[224] | 17 |
|
---|
[359] | 18 | SdtdConsole.Instance.Output ("Render map done");
|
---|
[224] | 19 | }
|
---|
| 20 | }
|
---|
[325] | 21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.