public SceneMain(IAudioEngine s, ShanghaiEXE p, SaveData save) : base(s, p, save) { this.eventmanager = new EventManager(this.mapscene, this.sound); for (int index1 = 0; index1 < this.chipfolder.GetLength(0); ++index1) { for (int index2 = 0; index2 < this.chipfolder.GetLength(1); ++index2) { this.chipfolder[index1, index2] = new ChipFolder(this.sound); this.chipfolder[index1, index2].SettingChip(this.savedata.chipFolder[index1, index2, 0]); this.chipfolder[index1, index2].codeNo = this.savedata.chipFolder[index1, index2, 1]; } } this.parent = p; this.battlescene = new SceneBattle(this.sound, p, this, this.eventmanager, true, 0, true, "", this.savedata); this.mapscene = new SceneMap(this.sound, p, this, this.eventmanager, save); this.nowscene = SceneMain.PLAYSCENE.map; }
private void ChangeScene() { this.nowscene = this.nextscene; this.changeScene = false; }