public void AddMission(Mission mission) { // We'll add a flag for if the mission has been completed Globals.campaign.GlobalFlags.Add(mission.GetKey(), new FlagBool("", false)); missionDB.AddEntry(mission); flags[mission.GetKey()] = new List <string>(); }
public void SaveMap() { string mapName = mapNameField.text; SavedDatabase <MapDataModel> mdb = currCampaign.GetMapDataContainer().mapDB; if (mdb.database.ContainsKey(mapName)) { mdb.database.Remove(mapName); } mdb.AddEntry(mapDataModel); SaveLoadManager.Savecampaign(currCampaign); }