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

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

Fixes

File size: 1.6 KB
Line 
1using AllocsFixes.CustomCommands;
2using System;
3using System.Collections.Generic;
4
5namespace AllocsFixes
6{
7 public class CommandExtensions
8 {
9 public static void InitCommandExtensions (GameManager manager)
10 {
11 try {
12 manager.m_GUIConsole.AddCommand (new CreativeMenu (manager.m_GUIConsole));
13 manager.m_GUIConsole.AddCommand (new EnableRendering (manager.m_GUIConsole));
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));
19 manager.m_GUIConsole.AddCommand (new ListKnownPlayers (manager.m_GUIConsole));
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 }
32 }
33 }
34}
Note: See TracBrowser for help on using the repository browser.