예제 #1
0
        // Set the game parameters back to their proper defaults (map to hihigher, etc.)
        private void ResetGameParameters(AllegianceInterop.ClientConnection client)
        {
            AllegianceInterop.FMD_CS_MISSIONPARAMS missionParameters = new AllegianceInterop.FMD_CS_MISSIONPARAMS(
                GameName,
                AllegianceInterop.MapType.c_mmHiHigher,
                MaxPlayersPerGame,
                MaxPlayersPerGame / 2
                );

            client.SendMessageServer(missionParameters);
        }
예제 #2
0
        // Set the game parameters back to their proper defaults (map to hihigher, etc.)
        private void ResetGameParameters(AllegianceInterop.ClientConnection client)
        {
            AllegianceInterop.FMD_CS_MISSIONPARAMS missionParameters = new AllegianceInterop.FMD_CS_MISSIONPARAMS(
                GameName,
                AllegianceInterop.MapType.c_mmHiHigher,
                MaxPlayersPerGame,
                MaxPlayersPerGame / 2
                );

            client.SendMessageServer(missionParameters);

            Log($"ResetGameParameters: SideIndex = {SideIndex}");

            AllegianceInterop.FMD_CS_FORCE_TEAM_READY forceReady = new AllegianceInterop.FMD_CS_FORCE_TEAM_READY(SideIndex, true);
            client.SendMessageServer(forceReady);
        }