예제 #1
0
        public void Setup()
        {
            //Todo: what is this path????
            StringBuilder c = new StringBuilder("données\\campagneDefaut.xml");

            NativeFunction.ouvrirPartieCampagne(ConfigHelper.ConvertPlayerCount(Config.PlayerCount), ConfigHelper.ConvertPlayerType(Config.PlayerTypes), c);

            NativeFunction.transmettreJoueursHumain(ConfigHelper.ConvertIsSolo(Config.PlayerCount), ConfigHelper.ConvertPlayerType(Config.PlayerTypes));

            //On envoie la liste de xml a c++
            foreach (var zone in MapConfig.SelectedZones)
            {
                if (!NativeFunction.envoyerNomFichier(zone.Path.ToCharArray(), zone.Path.Length))
                {
                    //Raise alert
                }
            }

            NativeFunction.finReceptionNomFichiers();
        }