Esempio n. 1
0
		internal GameItemHandler GetGameItemHandler()
		{
			if (this.gameItemHandler == null)
			{
				this.gameItemHandler = new GameItemHandler(this);
			}
			return this.gameItemHandler;
		}
Esempio n. 2
0
		internal void FlushSettings()
		{
			this.mCycleEnded = true;
			using (IQueryAdapter queryreactor = MercuryEnvironment.GetDatabaseManager().getQueryreactor())
			{
				this.GetRoomItemHandler().SaveFurniture(queryreactor, null);
			}
			this.Tags.Clear();
			this.UsersWithRights.Clear();
			this.Bans.Clear();
			this.ActiveTrades.Clear();
			this.LoadedGroups.Clear();
			if (this.GotFreeze())
			{
				this.freeze = new Freeze(this);
			}
			if (this.GotBanzai())
			{
				this.banzai = new BattleBanzai(this);
			}
			if (this.GotSoccer())
			{
				this.soccer = new Soccer(this);
			}
			if (this.gameItemHandler != null)
			{
				this.gameItemHandler = new GameItemHandler(this);
			}
		}