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


C# RoomItem.method_6方法代码示例

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


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

示例1: 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

示例2: method_79


//.........这里部分代码省略.........
                if (!bool_14 && Session != null)
                {
                    RoomItem_0.Class69_0.OnPlace(Session, RoomItem_0);
                }
                if (bool_13)
                {
                    if (this.hashtable_1.Contains(RoomItem_0.uint_0))
                    {
                        this.hashtable_1.Remove(RoomItem_0.uint_0);
                    }
                    if (this.hashtable_3.Contains(RoomItem_0.uint_0))
                    {
                        result = false;
                        return result;
                    }
                    this.hashtable_3.Add(RoomItem_0.uint_0, RoomItem_0);
                    if (RoomItem_0.Boolean_2)
                    {
                        if (this.hashtable_0.Contains(RoomItem_0.uint_0))
                        {
                            this.hashtable_0.Remove(RoomItem_0.uint_0);
                        }
                        this.hashtable_0.Add(RoomItem_0.uint_0, RoomItem_0);
                    }
                    else
                    {
                        if (this.hashtable_4.Contains(RoomItem_0.uint_0))
                        {
                            this.hashtable_4.Remove(RoomItem_0.uint_0);
                        }
                        this.hashtable_4.Add(RoomItem_0.uint_0, RoomItem_0);
                    }
                    ServerMessage Message5_ = new ServerMessage(93u);
                    RoomItem_0.method_6(Message5_);
                    this.SendMessage(Message5_, null);
                    string text = RoomItem_0.GetBaseItem().InteractionType.ToLower();
                    switch (text)
                    {
                        case "bb_patch":
                            this.list_5.Add(RoomItem_0);
                            if (RoomItem_0.ExtraData == "5")
                            {
                                this.list_6.Add(RoomItem_0);
                            }
                            else
                            {
                                if (RoomItem_0.ExtraData == "8")
                                {
                                    this.list_7.Add(RoomItem_0);
                                }
                                else
                                {
                                    if (RoomItem_0.ExtraData == "11")
                                    {
                                        this.list_9.Add(RoomItem_0);
                                    }
                                    else
                                    {
                                        if (RoomItem_0.ExtraData == "14")
                                        {
                                            this.list_8.Add(RoomItem_0);
                                        }
                                    }
                                }
                            }
                            break;
开发者ID:vaguinhogato,项目名称:Gold-Tree-Emulator,代码行数:67,代码来源:Room.cs


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