public MainScene(Game game, GraphicsDeviceManager graphics, SpriteBatch spriteBatch, SceneManager owner) : base(game, graphics, spriteBatch, owner) { this.game = game; this.graphics = graphics; this.content = game.Content; this.spriteBatch = spriteBatch; this.owner = owner; this.param = new Parameter(); this.nowGameMainState = GameMainState.TargetRock; this.prevGameMainState = this.nowGameMainState; this.stageManager = new StageManager(this.game, this.graphics, this); this.nowStageNumber = 1; this.clearScore = 0; this.nowSelectStageMode = StageModeState.Normal; this.modeClearNumberList = new Dictionary<string, int>(); }
public void StageLoadData(int playStageNum, StageModeState playStageMode, List<Dictionary<string, string>> stageDataList, bool bossFlg) { this.checkKey = "test"; this.gameStageList.Add(this.checkKey, new GameStage(this.game, this.graphics, this.owner)); this.gameStageList[this.checkKey].LoadContent(); Dictionary<string, string> stageParameterList = new Dictionary<string, string>(); this.gameStageList[this.checkKey].InitialStageData(stageParameterList, true, bossFlg); // this.checkKey = playStageNum.ToString() + StageManager.ConvertModeString(playStageMode); if ( this.gameStageList.ContainsKey(this.checkKey)) { this.gameStageList[this.checkKey].InitialStageData(stageParameterList, false, bossFlg); } else { this.gameStageList.Add(this.checkKey, new GameStage(this.game, this.graphics, this.owner)); this.gameStageList[this.checkKey].LoadContent(); this.gameStageList[this.checkKey].InitialStageData(stageParameterList, true, bossFlg); } this.nowPlayingStage = playStageNum; this.nowPlayingStageMode = playStageMode; }