/// <summary> /// Create the default rotating game tip module /// </summary> public GameTips() { tips = TipLoader.GetTips(); mode = TipMode.FullRotating; Scramble(new List <string>(tips.ToArray())); Initialize(); }
/// <summary> /// Create the default rotating game tip module /// </summary> public GameTips() { tips = TipLoader.GetTips(); mode = TipMode.FullRotating; Scramble(new List<string>(tips.ToArray())); Initialize(); }
/// <summary> /// Create a context sensitive rotating tip module that displays on death /// </summary> /// <param name="context">The game's context</param> public GameTips(GameContext context) { this.context = context; tips = TipLoader.GetTips(context); mode = TipMode.OnDeath; Scramble(new List <string>(tips.ToArray())); Initialize(); }
/// <summary> /// Create a context sensitive rotating tip module that displays on death /// </summary> /// <param name="context">The game's context</param> public GameTips(GameContext context) { this.context = context; tips = TipLoader.GetTips(context); mode = TipMode.OnDeath; Scramble(new List<string>(tips.ToArray())); Initialize(); }
/// <summary> /// Create a tip module with the specified tip display mode /// </summary> /// <param name="context">The game's context</param> /// <param name="mode">The mode to display tips with</param> public GameTips(GameContext context, TipMode mode) { this.context = context; if (mode == TipMode.FullRotating) tips = TipLoader.GetTips(); else tips = TipLoader.GetTips(context); this.mode = mode; Scramble(new List<string>(tips.ToArray())); Initialize(); }
/// <summary> /// Create a tip module with the specified tip display mode /// </summary> /// <param name="context">The game's context</param> /// <param name="mode">The mode to display tips with</param> public GameTips(GameContext context, TipMode mode) { this.context = context; if (mode == TipMode.FullRotating) { tips = TipLoader.GetTips(); } else { tips = TipLoader.GetTips(context); } this.mode = mode; Scramble(new List <string>(tips.ToArray())); Initialize(); }