public LevelEngine(GameEngine gameEngine, XLevelInfo levelInfo, XLevelScore levelScore) : base(gameEngine, levelInfo.File) { this.LevelInfo = levelInfo; this.LevelScore = levelScore; this.cps = new EventRateCounter(TimeSpan.FromSeconds(game.GameObject.CpsTimeSpan)); }
public void LoadLevel(XLevelInfo levelInfo) { #if IPHONE MonoTouch.UIKit.UIApplication.SharedApplication.BeginIgnoringInteractionEvents(); #endif var levelEngine = new LevelEngine(this, levelInfo, this.ScoreFile.LevelScoreDict[levelInfo.Id]); levelEngine.Owner = this.ScreenEngine; StartLevelInitialize(levelEngine); }