Exemple #1
0
        /// <summary>
        /// Init the c++ side
        /// </summary>
        private void InitBackend(bool isReconnect)
        {
            // Todo: Recheck after zone download is complete
            var helper = new OnlineConfigHelper(Model, _zones);

            // To check if it is a quickgame or campaing
            if (Model.ZonesHashId.Count > 1)
            {
                NativeFunction.creerPartieCampagneEnLigne(helper.IsCoop, helper.PlayerCount, helper.IaCount,
                                                          helper.MatchId, helper.MathIdLength, helper.PlayersId, helper.PlayersIdLength, helper.ZoneCount, helper.ZonesPath,
                                                          helper.ZonesPathLength, IsHost, isReconnect);
            }
            else
            {
                NativeFunction.creerPartieSimpleEnLigne(helper.IsCoop, helper.PlayerCount, helper.IaCount,
                                                        helper.MatchId, helper.MathIdLength, helper.PlayersId, helper.PlayersIdLength, new StringBuilder(helper.ZonesPath[0]),
                                                        helper.ZonesPathLength[0], IsHost, isReconnect);
            }
        }