当前位置: 首页>>代码示例>>C#>>正文


C# RoomItem.GetBaseItem方法代码示例

本文整理汇总了C#中GoldTree.HabboHotel.Items.RoomItem.GetBaseItem方法的典型用法代码示例。如果您正苦于以下问题:C# RoomItem.GetBaseItem方法的具体用法?C# RoomItem.GetBaseItem怎么用?C# RoomItem.GetBaseItem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GoldTree.HabboHotel.Items.RoomItem的用法示例。


在下文中一共展示了RoomItem.GetBaseItem方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnTrigger

 public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_1, bool bool_0)
 {
     if (bool_0)
     {
         if (this.Modes == 0)
         {
             RoomItem_0.UpdateState(false, true);
         }
         int num = 0;
         int num2 = 0;
         if (RoomItem_0.ExtraData.Length > 0)
         {
             num = int.Parse(RoomItem_0.ExtraData);
         }
         if (num <= 0)
         {
             num2 = 1;
         }
         else
         {
             if (num >= this.Modes)
             {
                 num2 = 0;
             }
             else
             {
                 num2 = num + 1;
             }
         }
         if (num2 == 0)
         {
             if (RoomItem_0.method_8().method_97(RoomItem_0.Int32_0, RoomItem_0.Int32_1))
             {
                 return;
             }
             Dictionary<int, AffectedTile> dictionary = RoomItem_0.method_8().method_94(RoomItem_0.GetBaseItem().Length, RoomItem_0.GetBaseItem().Width, RoomItem_0.Int32_0, RoomItem_0.Int32_1, RoomItem_0.int_3);
             if (dictionary == null)
             {
                 dictionary = new Dictionary<int, AffectedTile>();
             }
             foreach (AffectedTile current in dictionary.Values)
             {
                 if (RoomItem_0.method_8().method_97(current.Int32_0, current.Int32_1))
                 {
                     return;
                 }
             }
         }
         RoomItem_0.ExtraData = num2.ToString();
         RoomItem_0.method_4();
         RoomItem_0.method_8().method_22();
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:53,代码来源:InteractorGate.cs

示例2: OnTrigger

 public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0)
 {
     if (bool_0)
     {
         ServerMessage Message = new ServerMessage(650u);
         Message.AppendInt32(0);
         Message.AppendInt32(5);
         Message.AppendInt32(0);
         Message.AppendInt32(RoomItem_0.GetBaseItem().Sprite);
         Message.AppendUInt(RoomItem_0.uint_0);
         Message.AppendStringWithBreak("");
         Message.AppendString("I");
         if (RoomItem_0.string_3.Length > 0)
         {
             Message.AppendString(RoomItem_0.string_3);
         }
         else
         {
             Message.AppendString("RB");
         }
         Message.AppendStringWithBreak("HRAH");
         Session.SendMessage(Message);
         RoomItem_0.ReqUpdate(1);
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:25,代码来源:InteractorWiredTriggerTimer.cs

示例3: OnTrigger

 public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0)
 {
     if (RoomItem_0.GetBaseItem().Height_Adjustable.Count > 1)
     {
         Dictionary<int, AffectedTile> dictionary = RoomItem_0.method_8().method_94(RoomItem_0.GetBaseItem().Length, RoomItem_0.GetBaseItem().Width, RoomItem_0.Int32_0, RoomItem_0.Int32_1, RoomItem_0.int_3);
         RoomItem_0.method_8().method_22();
         RoomItem_0.method_8().method_87(RoomItem_0.method_8().method_43(RoomItem_0.Int32_0, RoomItem_0.Int32_1), true, true);
         foreach (AffectedTile current in dictionary.Values)
         {
             RoomItem_0.method_8().method_87(RoomItem_0.method_8().method_43(current.Int32_0, current.Int32_1), true, true);
         }
     }
     if (Session != null)
     {
         RoomUser RoomUser_ = Session.GetHabbo().CurrentRoom.GetRoomUserByHabbo(Session.GetHabbo().Id);
         RoomItem_0.method_8().method_10(RoomUser_, RoomItem_0);
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:18,代码来源:InteractorNotUsed.cs

示例4: OnTrigger

 public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0)
 {
     if (bool_0)
     {
         ServerMessage Message = new ServerMessage(651u);
         Message.AppendInt32(0);
         Message.AppendInt32(5);
         Message.AppendInt32(1);
         Message.AppendUInt(RoomItem_0.uint_0);
         Message.AppendInt32(RoomItem_0.GetBaseItem().Sprite);
         Message.AppendUInt(RoomItem_0.uint_0);
         Session.SendMessage(Message);
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:14,代码来源:WiredInteractor.cs

示例5: OnTrigger

 public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0)
 {
     if (bool_0)
     {
         RoomItem_0.method_9();
         ServerMessage Message = new ServerMessage(651u);
         Message.AppendInt32(0);
         Message.AppendInt32(5);
         if (RoomItem_0.string_5.Length > 0)
         {
             Message.AppendString(RoomItem_0.string_5);
         }
         else
         {
             Message.AppendInt32(0);
         }
         Message.AppendInt32(RoomItem_0.GetBaseItem().Sprite);
         Message.AppendUInt(RoomItem_0.uint_0);
         Message.AppendStringWithBreak("");
         Message.AppendString("J");
         if (RoomItem_0.string_2.Length > 0)
         {
             Message.AppendInt32(Convert.ToInt32(RoomItem_0.string_2));
         }
         else
         {
             Message.AppendInt32(0);
         }
         if (RoomItem_0.string_3.Length > 0)
         {
             Message.AppendInt32(Convert.ToInt32(RoomItem_0.string_3));
         }
         else
         {
             Message.AppendInt32(0);
         }
         Message.AppendString("HPA");
         if (RoomItem_0.string_6.Length > 0)
         {
             Message.AppendInt32(Convert.ToInt32(RoomItem_0.string_6));
         }
         else
         {
             Message.AppendInt32(0);
         }
         Message.AppendStringWithBreak("H");
         Session.SendMessage(Message);
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:49,代码来源:InteractorWiredMoveRotate.cs

示例6: OnTrigger

 public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0)
 {
     if (bool_0)
     {
         ServerMessage Message = new ServerMessage(650u);
         Message.AppendInt32(0);
         Message.AppendInt32(0);
         Message.AppendInt32(0);
         Message.AppendInt32(RoomItem_0.GetBaseItem().Sprite);
         Message.AppendUInt(RoomItem_0.uint_0);
         Message.AppendStringWithBreak(RoomItem_0.string_2);
         Message.AppendStringWithBreak("HHSAH");
         Session.SendMessage(Message);
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:15,代码来源:InteractorWiredEnterRoom.cs

示例7: OnTrigger

 public override void OnTrigger(GameClient Session, RoomItem Item, int Request, bool UserHasRights)
 {
     if (UserHasRights && Session != null)
     {
         Item.method_9();
         ServerMessage Message = new ServerMessage(651u);
         Message.AppendInt32(0);
         Message.AppendInt32(5);
         if (Item.string_5.Length > 0)
         {
             Message.AppendString(Item.string_5);
         }
         else
         {
             Message.AppendInt32(0);
         }
         Message.AppendInt32(Item.GetBaseItem().Sprite);
         Message.AppendUInt(Item.uint_0);
         Message.AppendStringWithBreak("");
         Message.AppendString("K");
         if (Item.string_3.Length > 0)
         {
             Message.AppendString(Item.string_3);
         }
         else
         {
             Message.AppendString("HHH");
         }
         Message.AppendString("IK");
         if (Item.string_6.Length > 0)
         {
             Message.AppendInt32(Convert.ToInt32(Item.string_6));
         }
         else
         {
             Message.AppendInt32(0);
         }
         Message.AppendStringWithBreak("H");
         Session.SendMessage(Message);
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:41,代码来源:InteractorWiredMatchFurni.cs

示例8: OnTrigger

 public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0)
 {
     if (bool_0 && Session != null)
     {
         RoomItem_0.method_10();
         ServerMessage Message = new ServerMessage(652u);
         Message.AppendInt32(0);
         Message.AppendInt32(5);
         if (RoomItem_0.string_2.Length > 0)
         {
             Message.AppendString(RoomItem_0.string_2);
         }
         else
         {
             Message.AppendInt32(0);
         }
         Message.AppendInt32(RoomItem_0.GetBaseItem().Sprite);
         Message.AppendUInt(RoomItem_0.uint_0);
         Message.AppendStringWithBreak("");
         Message.AppendStringWithBreak("HH");
         Session.SendMessage(Message);
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:23,代码来源:InteractorWiredCondition.cs

示例9: UnlockGate

 private void UnlockGate(RoomItem item)
 {
     switch (item.GetBaseItem().InteractionType)
     {
         case "freeze_blue_gate":
         case "freeze_red_gate":
         case "freeze_green_gate":
         case "freeze_yellow_gate":
             item.method_8().method_38(item.Int32_0, item.Int32_1);
             break;
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:12,代码来源:GameManager.cs

示例10: method_82

 public bool method_82(GameClient Session, RoomItem RoomItem_0, bool bool_13, string string_10)
 {
     if (bool_13)
     {
         RoomItem_0.Class69_0.OnPlace(Session, RoomItem_0);
         string text = RoomItem_0.GetBaseItem().InteractionType.ToLower();
         if (text != null && text == "dimmer" && this.class67_0 == null)
         {
             this.class67_0 = new MoodlightData(RoomItem_0.uint_0);
             RoomItem_0.ExtraData = this.class67_0.method_7();
         }
         if (!this.hashtable_3.ContainsKey(RoomItem_0.uint_0))
         {
             this.hashtable_3.Add(RoomItem_0.uint_0, RoomItem_0);
             if (RoomItem_0.Boolean_2)
             {
                 this.hashtable_0.Add(RoomItem_0.uint_0, RoomItem_0);
             }
             else
             {
                 if (!this.hashtable_4.Contains(RoomItem_0.uint_0))
                 {
                     this.hashtable_4.Add(RoomItem_0.uint_0, RoomItem_0);
                 }
             }
         }
         ServerMessage Message5_ = new ServerMessage(83u);
         RoomItem_0.method_6(Message5_);
         this.SendMessage(Message5_, null);
     }
     else
     {
         if (!this.hashtable_2.Contains(RoomItem_0.uint_0))
         {
             this.hashtable_2.Add(RoomItem_0.uint_0, RoomItem_0);
         }
     }
     if (!bool_13)
     {
         RoomItem_0.string_7 = string_10;
         ServerMessage Message5_ = new ServerMessage(85u);
         RoomItem_0.method_6(Message5_);
         this.SendMessage(Message5_, null);
     }
     return true;
 }
开发者ID:vaguinhogato,项目名称:Gold-Tree-Emulator,代码行数:46,代码来源:Room.cs

示例11: method_81

 public bool method_81(RoomItem RoomItem_0, int int_17, int int_18, double double_3)
 {
     Dictionary<int, AffectedTile> dictionary = this.method_94(RoomItem_0.GetBaseItem().Length, RoomItem_0.GetBaseItem().Width, int_17, int_18, RoomItem_0.int_3);
     RoomItem_0.method_0(int_17, int_18, double_3);
     if (!this.hashtable_2.Contains(RoomItem_0.uint_0))
     {
         this.hashtable_2.Add(RoomItem_0.uint_0, RoomItem_0);
     }
     this.method_22();
     this.method_87(this.method_43(int_17, int_18), true, true);
     foreach (AffectedTile current in dictionary.Values)
     {
         this.method_87(this.method_43(current.Int32_0, current.Int32_1), true, true);
     }
     return true;
 }
开发者ID:vaguinhogato,项目名称:Gold-Tree-Emulator,代码行数:16,代码来源:Room.cs

示例12: method_79

        public bool method_79(GameClient Session, RoomItem RoomItem_0, int int_17, int int_18, int int_19, bool bool_13, bool bool_14, bool bool_15)
        {
            Dictionary<int, AffectedTile> dictionary = this.method_94(RoomItem_0.GetBaseItem().Length, RoomItem_0.GetBaseItem().Width, int_17, int_18, int_19);
            bool result;
            if (!this.method_92(int_17, int_18))
            {
                result = false;
            }
            else
            {
                foreach (AffectedTile current in dictionary.Values)
                {
                    if (!this.method_92(current.Int32_0, current.Int32_1))
                    {
                        result = false;
                        return result;
                    }
                }
                double num = this.Class28_0.double_1[int_17, int_18];
                if (!bool_14)
                {
                    if (RoomItem_0.int_3 == int_19 && RoomItem_0.Int32_0 == int_17 && RoomItem_0.Int32_1 == int_18 && RoomItem_0.Double_0 != num)
                    {
                        result = false;
                        return result;
                    }
                    if (this.Class28_0.squareState[int_17, int_18] != SquareState.OPEN)
                    {
                        result = false;
                        return result;
                    }
                    foreach (AffectedTile current in dictionary.Values)
                    {
                        if (this.Class28_0.squareState[current.Int32_0, current.Int32_1] != SquareState.OPEN)
                        {
                            result = false;
                            return result;
                        }
                    }
                    if (RoomItem_0.GetBaseItem().IsSeat || RoomItem_0.Boolean_0)
                    {
                        goto IL_1FE;
                    }
                    if (this.method_97(int_17, int_18) && !RoomItem_0.GetBaseItem().Walkable)
                    {
                        result = false;
                        return result;
                    }
                    using (Dictionary<int, AffectedTile>.ValueCollection.Enumerator enumerator = dictionary.Values.GetEnumerator())
                    {
                        while (enumerator.MoveNext())
                        {
                            AffectedTile current = enumerator.Current;
                            if (this.method_97(current.Int32_0, current.Int32_1) && !RoomItem_0.GetBaseItem().Walkable)
                            {
                                result = false;
                                return result;
                            }
                        }
                        goto IL_1FE;
                    }
                }
                if (this.Class28_0.squareState[int_17, int_18] != SquareState.OPEN)
                {
                    result = false;
                    return result;
                }
                if (this.method_97(int_17, int_18) && !RoomItem_0.GetBaseItem().Walkable)
                {
                    result = false;
                    return result;
                }
                else if (!RoomItem_0.GetBaseItem().Walkable)
                {
                    if (!bool_15 && this.method_97(int_17, int_18))
                    {
                        result = false;
                        return result;
                    }
                }
            IL_1FE:
                List<RoomItem> list = this.method_93(int_17, int_18);
                List<RoomItem> list2 = new List<RoomItem>();
                List<RoomItem> list3 = new List<RoomItem>();
                foreach (AffectedTile current in dictionary.Values)
                {
                    List<RoomItem> list4 = this.method_93(current.Int32_0, current.Int32_1);
                    if (list4 != null)
                    {
                        list2.AddRange(list4);
                    }
                }
                if (list == null)
                {
                    list = new List<RoomItem>();
                }
                list3.AddRange(list);
                list3.AddRange(list2);
                int num2 = 0;
                foreach (RoomItem current2 in list3)
//.........这里部分代码省略.........
开发者ID:vaguinhogato,项目名称:Gold-Tree-Emulator,代码行数:101,代码来源:Room.cs

示例13: method_25

        public void method_25()
        {
            this.hashtable_0.Clear();
            this.hashtable_4.Clear();
            DataTable dataTable;
            using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
            {
                dataTable = @class.ReadDataTable("SELECT Id, base_item, extra_data, x, y, z, rot, wall_pos FROM items WHERE room_id = '" + this.uint_0 + "' ORDER BY room_id DESC");
            }
            if (dataTable != null)
            {
                foreach (DataRow dataRow in dataTable.Rows)
                {
                    RoomItem class2 = new RoomItem((uint)dataRow["Id"], this.Id, (uint)dataRow["base_item"], (string)dataRow["extra_data"], (int)dataRow["x"], (int)dataRow["y"], (double)dataRow["z"], (int)dataRow["rot"], (string)dataRow["wall_pos"], this);
                    if (class2.Boolean_0)
                    {
                        this.bool_11 = true;
                    }
                    if (class2.GetBaseItem().InteractionType.ToLower().Contains("wf_") || class2.GetBaseItem().InteractionType.ToLower().Contains("fbgate"))
                    {
                        DataRow dataRow2;
                        using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
                        {
                            dataRow2 = @class.ReadDataRow("SELECT extra1,extra2,extra3,extra4,extra5 FROM wired_items WHERE item_id = '" + class2.uint_0 + "'");
                        }
                        if (dataRow2 != null)
                        {
                            class2.string_2 = (string)dataRow2["extra1"];
                            class2.string_3 = (string)dataRow2["extra2"];
                            class2.string_4 = (string)dataRow2["extra3"];
                            class2.string_5 = (string)dataRow2["extra4"];
                            class2.string_6 = (string)dataRow2["extra5"];
                        }
                    }
                    if (class2.GetBaseItem().InteractionType.ToLower() == "firework")
                    {
                        DataRow dataRow2;
                        using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
                        {
                            dataRow2 = @class.ReadDataRow("SELECT fw_count FROM items WHERE id = '" + class2.uint_0 + "'");
                        }
                        if (dataRow2 != null)
                        {
                            class2.FireWorkCount = (int)dataRow2["fw_count"];
                        }
                    }

                    if (class2.GetBaseItem().InteractionType.ToLower() == "jukebox")
                    {
                        RoomMusicController roomMusicController = class2.method_8().GetRoomMusicController();
                        roomMusicController.LinkRoomOutputItemIfNotAlreadyExits(class2);
                    }
                    string text = class2.GetBaseItem().InteractionType.ToLower();
                    switch (text)
                    {
                        case "dice":
                            if (class2.ExtraData == "-1")
                            {
                                class2.ExtraData = "0";
                            }
                            break;
                        case "fbgate":
                            if (class2.ExtraData != "" && class2.ExtraData.Contains(','))
                            {
                                class2.string_2 = class2.ExtraData.Split(new char[]
                            {
                                ','
                            })[0];
                                class2.string_3 = class2.ExtraData.Split(new char[]
                            {
                                ','
                            })[1];
                            }
                            break;
                        case "dimmer":
                            if (this.class67_0 == null)
                            {
                                this.class67_0 = new MoodlightData(class2.uint_0);
                            }
                            break;
                        case "bb_patch":
                            this.list_5.Add(class2);
                            if (class2.ExtraData == "5")
                            {
                                this.list_6.Add(class2);
                            }
                            else
                            {
                                if (class2.ExtraData == "8")
                                {
                                    this.list_7.Add(class2);
                                }
                                else
                                {
                                    if (class2.ExtraData == "11")
                                    {
                                        this.list_9.Add(class2);
                                    }
                                    else
                                    {
//.........这里部分代码省略.........
开发者ID:vaguinhogato,项目名称:Gold-Tree-Emulator,代码行数:101,代码来源:Room.cs

示例14: method_21

        public bool method_21(RoomUser RoomUser_1, RoomItem RoomItem_0, string string_10)
        {
            bool result;
            try
            {
                if (this.bool_6 || this.bool_7)
                {
                    result = false;
                }
                else
                {
                    bool flag = false;
                    int num = 0;
                    int num2 = 0;
                    bool flag2 = false;
                    string text = RoomItem_0.GetBaseItem().InteractionType.ToLower();
                    switch (text)
                    {
                        case "wf_trg_onsay":
                            if (string_10.Contains(RoomItem_0.string_2.ToLower()))
                            {
                                flag = true;
                            }
                            break;
                        case "wf_trg_enterroom":
                            if (RoomItem_0.string_2 == "" || RoomItem_0.string_2 == RoomUser_1.GetClient().GetHabbo().Username)
                            {
                                flag = true;
                            }
                            break;
                        case "wf_trg_furnistate":
                            if (RoomItem_0.string_3.Length > 0)
                            {
                                string[] collection = RoomItem_0.string_3.Split(new char[]
                            {
                                ','
                            });
                                List<string> list = new List<string>(collection);
                                foreach (string current in list)
                                {
                                    if (current == string_10)
                                    {
                                        flag = true;
                                    }
                                }
                            }
                            break;
                        case "wf_trg_onfurni":
                            if (RoomItem_0.string_3.Length > 0)
                            {
                                string[] collection = RoomItem_0.string_3.Split(new char[]
                            {
                                ','
                            });
                                List<string> list = new List<string>(collection);
                                List<string> list2 = list;
                                foreach (string current in list)
                                {
                                    if (!(current != string_10))
                                    {
                                        RoomItem @class = this.method_28(Convert.ToUInt32(string_10));
                                        if (@class != null)
                                        {
                                            flag = true;
                                        }
                                        else
                                        {
                                            list2.Remove(current);
                                        }
                                    }
                                }
                                RoomItem_0.string_3 = string.Join(",", list2.ToArray());
                            }
                            break;
                        case "wf_trg_offfurni":
                            if (RoomItem_0.string_3.Length > 0)
                            {
                                string[] collection = RoomItem_0.string_3.Split(new char[]
                            {
                                ','
                            });
                                List<string> list = new List<string>(collection);
                                List<string> list2 = list;
                                foreach (string current in list)
                                {
                                    if (!(current != string_10))
                                    {
                                        RoomItem @class = this.method_28(Convert.ToUInt32(string_10));
                                        if (@class != null)
                                        {
                                            flag = true;
                                        }
                                        else
                                        {
                                            list2.Remove(current);
                                        }
                                    }
                                }
                                RoomItem_0.string_3 = string.Join(",", list2.ToArray());
                            }
//.........这里部分代码省略.........
开发者ID:vaguinhogato,项目名称:Gold-Tree-Emulator,代码行数:101,代码来源:Room.cs

示例15: OnTrigger

 public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_1, bool bool_0)
 {
     if (this.Modes != 0 && (bool_0 || RoomItem_0.GetBaseItem().InteractionType.ToLower() == "switch"))
     {
         if (RoomItem_0.GetBaseItem().InteractionType.ToLower() == "switch" && Session != null)
         {
             RoomUser @class = Session.GetHabbo().CurrentRoom.GetRoomUserByHabbo(Session.GetHabbo().Id);
             if (@class.GStruct1_0.x - RoomItem_0.GStruct1_1.x > 1 || @class.GStruct1_0.y - RoomItem_0.GStruct1_1.y > 1)
             {
                 if (@class.bool_0)
                 {
                     @class.method_4(RoomItem_0.GStruct1_0);
                     return;
                 }
                 return;
             }
         }
         int num = 0;
         if (RoomItem_0.ExtraData.Length > 0)
         {
             num = int.Parse(RoomItem_0.ExtraData);
         }
         int num2;
         if (num <= 0)
         {
             num2 = 1;
         }
         else
         {
             if (num >= this.Modes)
             {
                 num2 = 0;
             }
             else
             {
                 num2 = num + 1;
             }
         }
         if (RoomItem_0.GetBaseItem().Name.Contains("jukebox"))
         {
             ServerMessage Message = new ServerMessage(327u);
             if (num2 == 1)
             {
                 Message.AppendInt32(7);
                 Message.AppendInt32(6);
                 Message.AppendInt32(7);
                 Message.AppendInt32(0);
                 Message.AppendInt32(0);
                 RoomItem_0.int_0 = 1;
                 RoomItem_0.bool_0 = true;
                 RoomItem_0.bool_1 = true;
             }
             else
             {
                 Message.AppendInt32(-1);
                 Message.AppendInt32(-1);
                 Message.AppendInt32(-1);
                 Message.AppendInt32(-1);
                 Message.AppendInt32(0);
                 RoomItem_0.int_0 = 0;
                 RoomItem_0.bool_0 = false;
                 RoomItem_0.method_8().int_13 = 0;
             }
             RoomItem_0.method_8().SendMessage(Message, null);
         }
         double double_ = RoomItem_0.Double_1;
         RoomItem_0.ExtraData = num2.ToString();
         RoomItem_0.method_4();
         if (double_ != RoomItem_0.Double_1)
         {
             Dictionary<int, AffectedTile> dictionary = RoomItem_0.Dictionary_0;
             if (dictionary == null)
             {
                 dictionary = new Dictionary<int, AffectedTile>();
             }
             RoomItem_0.method_8().method_87(RoomItem_0.method_8().method_43(RoomItem_0.Int32_0, RoomItem_0.Int32_1), true, false);
             foreach (AffectedTile current in dictionary.Values)
             {
                 RoomItem_0.method_8().method_87(RoomItem_0.method_8().method_43(current.Int32_0, current.Int32_1), true, false);
             }
         }
         if (Session != null)
         {
             RoomUser RoomUser_ = Session.GetHabbo().CurrentRoom.GetRoomUserByHabbo(Session.GetHabbo().Id);
             RoomItem_0.method_8().method_10(RoomUser_, RoomItem_0);
         }
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:88,代码来源:InteractorDefault.cs


注:本文中的GoldTree.HabboHotel.Items.RoomItem.GetBaseItem方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。