public override void ProcessLogic(IGameModuleContext context) { if (context.ModuleRunTime > TimeSpan.FromMilliseconds(2500)) { context.Exit(null); } }
public override void ProcessLogic(IGameModuleContext context) { if (isOptionAccepted) { MainMenuEntry entry = optionSelector.CurrentValue; context.Exit(entry); } }
protected bool HandleExitFlag(IGameModuleContext context) { Verify.NotNull(context, nameof(context)); if (exit) { context.Exit(null); } return(exit); }
public override void ProcessLogic(IGameModuleContext context) { if (gameLogic.GameOverJustification.IsGameOver) { var info = new GameOverInfo(playerName, gameLogic.ScoreStatus.Value, gameLogic.GameOverJustification.Reason); context.Exit(info); return; } gameLogic.Update(); scoreTransitionUI.Update(); }
public override void ProcessLogic(IGameModuleContext context) { base.ProcessLogic(context); colorAnimation.Update(); }
// 2) public virtual void ProcessLogic(IGameModuleContext context) { HandleExitFlag(context); }
public override void ProcessLogic(IGameModuleContext context) { hiScoresAnimation.Update(); HandleExitFlag(context); }