Exemple #1
0
        private void method_66(bool bool_13)
        {
            if (!this.bool_12)
            {
                this.bool_12 = true;
                if (bool_13)
                {
                    this.mGotRollers = false;
                    if (this.timer_0 != null)
                    {
                        this.bool_6 = true;
                        this.timer_0.Change(-1, -1);
                    }
                    this.method_64();
                    using (DatabaseClient @class = PhoenixEnvironment.GetDatabase().GetClient())
                    {
                        @class.ExecuteQuery(string.Concat(new object[]
						{
							"UPDATE user_pets SET room_id = 0 WHERE room_id = ",
							this.Id,
							" AND NOT user_id = ",
							PhoenixEnvironment.GetGame().GetClientManager().GetIdByName(this.Owner)
						}));
                    }
                    this.timer_0.Dispose();
                    this.timer_0 = null;
                    this.bool_9 = false;
                    if (this.Tags != null)
                    {
                        this.Tags.Clear();
                    }
                    this.Tags = null;
                    if (this.UserList != null)
                    {
                        Array.Clear(this.UserList, 0, this.UserList.Length);
                    }
                    this.UserList = null;
                    this.class29_0 = null;
                    if (this.UsersWithRights != null)
                    {
                        this.UsersWithRights.Clear();
                    }
                    this.class29_0 = null;
                    if (this.dictionary_0 != null)
                    {
                        this.dictionary_0.Clear();
                    }
                    this.dictionary_0 = null;
                    this.Wallpaper = null;
                    this.Floor = null;
                    this.Landscape = null;
                    if (this.mFloorItems != null)
                    {
                        this.mFloorItems.Clear();
                    }
                    this.mFloorItems = null;
                    if (this.mWallItems != null)
                    {
                        this.mWallItems.Clear();
                    }
                    this.mWallItems = null;
                    this.MoodlightData = null;
                    if (this.ActiveTrades != null)
                    {
                        this.ActiveTrades.Clear();
                    }
                    this.ActiveTrades = null;
                    if (this.musicController != null)
                    {
                        this.musicController.UnLinkRoomOutputItem();
                    }
                    this.musicController = null;
                }
            }
        }
Exemple #2
0
 internal RoomMusicController GetRoomMusicController()
 {
     if (this.musicController == null)
     {
         this.musicController = new RoomMusicController();
     }
     return this.musicController;
 }