source: binary-improvements/7dtd-server-fixes/src/CommandExtensions.cs@ 151

Last change on this file since 151 was 146, checked in by alloc, 10 years ago

Fixes

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