/// <summary> /// Initializes a new instance of the <see cref="Game"/> class. /// </summary> /// <param name="gameId">The game id.</param> /// <param name="roomCache">The room cache the game blongs to.</param> /// <param name="emptyRoomLiveTime"> /// A value indicating how long the room instance will be keeped alive /// in the room cache after all peers have left the room. /// </param> public Game(string gameId, GameCache roomCache = null, int emptyRoomLiveTime = 0) : base(gameId, roomCache, emptyRoomLiveTime) { if (GameApplication.Instance.AppStatsPublisher != null) { GameApplication.Instance.AppStatsPublisher.IncrementGameCount(); } }
protected override void Setup() { base.Setup(); this.GameCache = new TestGameCache(this); }