public void LoadMapProperties() { MapName = MapName; ChosenScroll = ChosenScroll; NoSwitch = NoSwitch; BG.LoadFromSource(ZoneManager.Instance.CurrentGround.Background); BlankBG.LoadFromSource(ZoneManager.Instance.CurrentGround.BlankBG); bool foundSong = false; for (int ii = 0; ii < Music.Count; ii++) { string song = Music[ii]; if (song == ZoneManager.Instance.CurrentGround.Music) { ChosenMusic = ii; foundSong = true; break; } } if (!foundSong) { ChosenMusic = -1; } }
public void LoadMapProperties() { MapName = MapName; ChosenTileSight = ChosenTileSight; ChosenCharSight = ChosenCharSight; NoRescue = NoRescue; NoSwitch = NoSwitch; ChosenElement = ChosenElement; ChosenScroll = ChosenScroll; BG.LoadFromSource(ZoneManager.Instance.CurrentMap.Background); BlankBG.LoadFromSource(ZoneManager.Instance.CurrentMap.BlankBG); TextureMap.LoadFromDict(ZoneManager.Instance.CurrentMap.TextureMap); bool foundSong = false; for (int ii = 0; ii < Music.Count; ii++) { string song = Music[ii]; if (song == ZoneManager.Instance.CurrentMap.Music) { ChosenMusic = ii; foundSong = true; break; } } if (!foundSong) { ChosenMusic = -1; } }