public static MultiPlayerCampaign LoadNew(XElement element)
        {
            MultiPlayerCampaign campaign = new MultiPlayerCampaign();

            campaign.Load(element);
            campaign.InitProjSpecific();
            campaign.IsFirstRound = false;
            return(campaign);
        }
Exemple #2
0
        public static MultiPlayerCampaign StartNew(string mapSeed)
        {
            MultiPlayerCampaign campaign = new MultiPlayerCampaign();

            //only the server generates the map, the clients load it from a save file
            if (GameMain.NetworkMember != null && GameMain.NetworkMember.IsServer)
            {
                campaign.map = new Map(campaign, mapSeed);
            }
            campaign.InitProjSpecific();
            return(campaign);
        }