Rev | Line | |
---|
[130] | 1 | using AllocsFixes.CustomCommands;
|
---|
[96] | 2 | using System;
|
---|
[107] | 3 | using System.Collections.Generic;
|
---|
[96] | 4 |
|
---|
[130] | 5 | namespace AllocsFixes
|
---|
[96] | 6 | {
|
---|
[130] | 7 | public class CommandExtensions
|
---|
[96] | 8 | {
|
---|
[130] | 9 | public static void InitCommandExtensions (GameManager manager)
|
---|
| 10 | {
|
---|
| 11 | try {
|
---|
[163] | 12 | ConsoleSdtd cons = manager.m_GUIConsole;
|
---|
| 13 | cons.AddCommand (new CreativeMenu (cons));
|
---|
| 14 | cons.AddCommand (new EnableRendering (cons));
|
---|
| 15 | cons.AddCommand (new GetGamePrefs (cons));
|
---|
| 16 | cons.AddCommand (new GetTime (cons));
|
---|
| 17 | cons.AddCommand (new Give (cons));
|
---|
| 18 | cons.AddCommand (new Kill (cons));
|
---|
| 19 | cons.AddCommand (new ListItems (cons));
|
---|
| 20 | cons.AddCommand (new ListKnownPlayers (cons));
|
---|
| 21 | cons.AddCommand (new ListLandProtection (cons));
|
---|
| 22 | cons.AddCommand (new ListPlayersExtended (cons));
|
---|
| 23 | cons.AddCommand (new RemoveLandProtection (cons));
|
---|
| 24 | cons.AddCommand (new RenderMap (cons));
|
---|
| 25 | cons.AddCommand (new Reply (cons));
|
---|
| 26 | cons.AddCommand (new SayToPlayer (cons));
|
---|
| 27 | cons.AddCommand (new SetTimeReal (cons));
|
---|
| 28 | cons.AddCommand (new ShowInventory (cons));
|
---|
| 29 | cons.AddCommand (new TeleportPlayer (cons));
|
---|
| 30 | cons.AddCommand (new AllocsFixes.CustomCommands.Version (cons));
|
---|
[130] | 31 | } catch (Exception e) {
|
---|
| 32 | Log.Out ("Error registering custom commands: " + e);
|
---|
| 33 | }
|
---|
[107] | 34 | }
|
---|
[96] | 35 | }
|
---|
| 36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.