- Timestamp:
- Aug 26, 2014, 4:41:47 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/CommandExtensions.cs
r128 r130 1 using AllocsFixes.CustomCommands; 1 2 using System; 2 3 using System.Collections.Generic; 3 4 4 public class CommandExtensions5 namespace AllocsFixes 5 6 { 6 public static void InitCommandExtensions (GameManager manager)7 public class CommandExtensions 7 8 { 8 try { 9 manager.m_GUIConsole.AddCommand (new CreativeMenu (manager.m_GUIConsole)); 10 manager.m_GUIConsole.AddCommand (new GetGamePrefs (manager.m_GUIConsole)); 11 manager.m_GUIConsole.AddCommand (new GetTime (manager.m_GUIConsole)); 12 manager.m_GUIConsole.AddCommand (new Give (manager.m_GUIConsole)); 13 manager.m_GUIConsole.AddCommand (new Kill (manager.m_GUIConsole)); 14 manager.m_GUIConsole.AddCommand (new ListItems (manager.m_GUIConsole)); 15 manager.m_GUIConsole.AddCommand (new ListLandProtection (manager.m_GUIConsole)); 16 manager.m_GUIConsole.AddCommand (new ListPlayersExtended (manager.m_GUIConsole)); 17 manager.m_GUIConsole.AddCommand (new RemoveLandProtection (manager.m_GUIConsole)); 18 manager.m_GUIConsole.AddCommand (new RenderMap (manager.m_GUIConsole)); 19 manager.m_GUIConsole.AddCommand (new Reply (manager.m_GUIConsole)); 20 manager.m_GUIConsole.AddCommand (new SayToPlayer (manager.m_GUIConsole)); 21 manager.m_GUIConsole.AddCommand (new SetTimeReal (manager.m_GUIConsole)); 22 manager.m_GUIConsole.AddCommand (new ShowInventory (manager.m_GUIConsole)); 23 manager.m_GUIConsole.AddCommand (new Version (manager.m_GUIConsole)); 24 } catch (Exception e) { 25 Log.Out ("Error registering custom commands: " + e); 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 GetGamePrefs (manager.m_GUIConsole)); 14 manager.m_GUIConsole.AddCommand (new GetTime (manager.m_GUIConsole)); 15 manager.m_GUIConsole.AddCommand (new Give (manager.m_GUIConsole)); 16 manager.m_GUIConsole.AddCommand (new Kill (manager.m_GUIConsole)); 17 manager.m_GUIConsole.AddCommand (new ListItems (manager.m_GUIConsole)); 18 manager.m_GUIConsole.AddCommand (new ListLandProtection (manager.m_GUIConsole)); 19 manager.m_GUIConsole.AddCommand (new ListPlayersExtended (manager.m_GUIConsole)); 20 manager.m_GUIConsole.AddCommand (new RemoveLandProtection (manager.m_GUIConsole)); 21 manager.m_GUIConsole.AddCommand (new RenderMap (manager.m_GUIConsole)); 22 manager.m_GUIConsole.AddCommand (new Reply (manager.m_GUIConsole)); 23 manager.m_GUIConsole.AddCommand (new SayToPlayer (manager.m_GUIConsole)); 24 manager.m_GUIConsole.AddCommand (new SetTimeReal (manager.m_GUIConsole)); 25 manager.m_GUIConsole.AddCommand (new ShowInventory (manager.m_GUIConsole)); 26 manager.m_GUIConsole.AddCommand (new AllocsFixes.CustomCommands.Version (manager.m_GUIConsole)); 27 } catch (Exception e) { 28 Log.Out ("Error registering custom commands: " + e); 29 } 26 30 } 27 31 } 28 32 } 29
Note:
See TracChangeset
for help on using the changeset viewer.