Exemple #1
0
 internal void FlushSettings()
 {
     this.mCycleEnded = true;
     using (IQueryAdapter queryreactor = CyberEnvironment.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);
     }
 }
Exemple #2
0
 internal GameItemHandler GetGameItemHandler()
 {
     if (this.gameItemHandler == null)
     {
         this.gameItemHandler = new GameItemHandler(this);
     }
     return(this.gameItemHandler);
 }
Exemple #3
0
		internal GameItemHandler GetGameItemHandler()
		{
			if (this.gameItemHandler == null)
			{
				this.gameItemHandler = new GameItemHandler(this);
			}
			return this.gameItemHandler;
		}
Exemple #4
0
		internal void FlushSettings()
		{
			this.mCycleEnded = true;
			using (IQueryAdapter queryreactor = CyberEnvironment.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);
			}
		}