Esempio n. 1
0
        public MultiplayerGameLobby(WindowManager windowManager, string iniName,
                                    TopBar topBar, List <GameMode> GameModes)
            : base(windowManager, iniName, GameModes, true)
        {
            TopBar = topBar;

            chatBoxCommands = new ChatBoxCommand[]
            {
                new ChatBoxCommand("HIDEMAPS", "Hide map list (game host only)", true,
                                   new Action <string>(s => HideMapList())),
                new ChatBoxCommand("SHOWMAPS", "Show map list (game host only)", true,
                                   new Action <string>(s => ShowMapList())),
                new ChatBoxCommand("FRAMESENDRATE", "Change order lag / FrameSendRate (game host only)", true,
                                   new Action <string>(s => SetFrameSendRate(s))),
            };
        }
Esempio n. 2
0
        public MultiplayerGameLobby(WindowManager windowManager, string iniName,
                                    TopBar topBar, List <GameMode> GameModes)
            : base(windowManager, iniName, GameModes, true)
        {
            TopBar = topBar;

            chatBoxCommands = new ChatBoxCommand[]
            {
                new ChatBoxCommand("HIDEMAPS", "Hide map list (game host only)", true,
                                   new Action <string>(s => HideMapList())),
                new ChatBoxCommand("SHOWMAPS", "Show map list (game host only)", true,
                                   new Action <string>(s => ShowMapList())),
                new ChatBoxCommand("FRAMESENDRATE", "Change order lag / FrameSendRate (default 7) (game host only)", true,
                                   new Action <string>(s => SetFrameSendRate(s))),
                new ChatBoxCommand("MAXAHEAD", "Change MaxAhead (default 0) (game host only)", true,
                                   new Action <string>(s => SetMaxAhead(s))),
                new ChatBoxCommand("PROTOCOLVERSION", "Change ProtocolVersion (default 2) (game host only)", true,
                                   new Action <string>(s => SetProtocolVersion(s))),
            };
        }
 /// <summary>
 /// Allows derived classes to add their own chat box commands.
 /// </summary>
 /// <param name="command">The command to add.</param>
 protected void AddChatBoxCommand(ChatBoxCommand command)
 {
     chatBoxCommands.Add(command);
 }