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


C# RoomItem.ReqUpdate方法代码示例

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


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

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

示例2: OnTrigger

 public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0)
 {
     RoomUser @class = RoomItem_0.method_8().GetRoomUserByHabbo(Session.GetHabbo().Id);
     if (@class != null && (RoomItem_0.GStruct1_2.x < RoomItem_0.method_8().Class28_0.int_4 && RoomItem_0.GStruct1_2.y < RoomItem_0.method_8().Class28_0.int_5))
     {
         if (ThreeDCoord.smethod_1(@class.GStruct1_0, RoomItem_0.GStruct1_1) && @class.bool_0)
         {
             @class.method_4(RoomItem_0.GStruct1_1);
         }
         else
         {
             if (RoomItem_0.method_8().method_30(RoomItem_0.GStruct1_2.x, RoomItem_0.GStruct1_2.y, RoomItem_0.Double_0, true, false) && RoomItem_0.uint_3 == 0u)
             {
                 RoomItem_0.uint_3 = @class.uint_0;
                 @class.bool_0 = false;
                 if (@class.bool_6 && (@class.int_10 != RoomItem_0.GStruct1_1.x || @class.int_11 != RoomItem_0.GStruct1_1.y))
                 {
                     @class.method_3(true);
                 }
                 @class.bool_1 = true;
                 @class.method_4(RoomItem_0.GStruct1_0);
                 RoomItem_0.ReqUpdate(3);
             }
         }
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:26,代码来源:InteractorOneWayGate.cs

示例3: OnTrigger

 public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0)
 {
     if (RoomItem_0.ExtraData != "-1")
     {
         RoomItem_0.ExtraData = "-1";
         RoomItem_0.UpdateState(false, true);
         RoomItem_0.ReqUpdate(3);
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:9,代码来源:InteractorSpinningBottle.cs

示例4: OnTrigger

 public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0)
 {
     if (bool_0 && RoomItem_0.ExtraData != "-1")
     {
         RoomItem_0.ExtraData = "-1";
         RoomItem_0.method_4();
         RoomItem_0.ReqUpdate(10);
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:9,代码来源:InteractorHabboWheel.cs

示例5: OnTrigger

 public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0)
 {
     RoomUser @class = null;
     if (Session != null)
     {
         @class = RoomItem_0.method_8().GetRoomUserByHabbo(Session.GetHabbo().Id);
         if (@class == null)
         {
             return;
         }
     }
     if (Session == null || RoomItem_0.method_8().method_99(RoomItem_0.Int32_0, RoomItem_0.Int32_1, @class.int_3, @class.int_4))
     {
         if (RoomItem_0.ExtraData != "-1")
         {
             if (int_0 == -1)
             {
                 RoomItem_0.ExtraData = "0";
                 RoomItem_0.method_4();
             }
             else
             {
                 RoomItem_0.uint_3 = @class.uint_0;
                 RoomItem_0.ExtraData = "-1";
                 RoomItem_0.UpdateState(false, true);
                 RoomItem_0.ReqUpdate(4);
             }
         }
     }
     else
     {
         if (Session != null && @class != null && @class.bool_0)
         {
             try
             {
                 @class.method_4(RoomItem_0.GStruct1_1);
             }
             catch
             {
             }
         }
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:43,代码来源:InteractorDice.cs

示例6: method_91

 public void method_91(RoomItem RoomItem_0, RoomUser RoomUser_1)
 {
     RoomItem_0.ExtraData = "1";
     RoomItem_0.UpdateState(false, true);
     RoomItem_0.ReqUpdate(1);
     List<RoomItem> list = new List<RoomItem>();
     RoomUser_1.method_3(true);
     foreach (RoomItem @class in this.Hashtable_0.Values)
     {
         if (@class != RoomItem_0 && !(@class.GetBaseItem().InteractionType.ToLower() != "bb_teleport"))
         {
             list.Add(@class);
         }
     }
     if (list.Count > 0)
     {
         Random random = new Random((int)GoldTree.GetUnixTimestamp() * (int)RoomUser_1.uint_0);
         int index = random.Next(0, list.Count);
         list[index].ExtraData = "1";
         list[index].UpdateState(false, true);
         list[index].ReqUpdate(1);
         this.byte_0[RoomUser_1.int_3, RoomUser_1.int_4] = 1;
         this.byte_0[list[index].Int32_0, list[index].Int32_1] = 1;
         RoomUser_1.method_7(list[index].Int32_0, list[index].Int32_1, list[index].Double_0);
         RoomUser_1.UpdateNeeded = true;
     }
 }
开发者ID:vaguinhogato,项目名称:Gold-Tree-Emulator,代码行数:27,代码来源:Room.cs

示例7: method_79


//.........这里部分代码省略.........
                            break;
                        case "red_score":
                            this.list_10.Add(RoomItem_0);
                            break;
                        case "yellow_score":
                            this.list_11.Add(RoomItem_0);
                            break;
                        case "stickiepole":
                            this.list_3.Add(RoomItem_0);
                            break;
                        case "wf_trg_onsay":
                        case "wf_trg_enterroom":
                        case "wf_trg_furnistate":
                        case "wf_trg_onfurni":
                        case "wf_trg_offfurni":
                        case "wf_trg_gameend":
                        case "wf_trg_gamestart":
                        case "wf_trg_atscore":
                            if (!this.list_14.Contains(RoomItem_0))
                            {
                                this.list_14.Add(RoomItem_0);
                            }
                            break;
                        case "wf_trg_attime":
                            if (RoomItem_0.string_2.Length <= 0)
                            {
                                RoomItem_0.string_2 = "10";
                            }
                            if (!this.list_14.Contains(RoomItem_0))
                            {
                                this.list_14.Add(RoomItem_0);
                            }
                            RoomItem_0.bool_0 = true;
                            RoomItem_0.ReqUpdate(1);
                            break;
                        case "wf_trg_timer":
                            if (RoomItem_0.string_2.Length <= 0)
                            {
                                RoomItem_0.string_2 = "10";
                            }
                            if (!this.list_14.Contains(RoomItem_0))
                            {
                                this.list_14.Add(RoomItem_0);
                            }
                            RoomItem_0.bool_0 = true;
                            RoomItem_0.ReqUpdate(1);
                            break;
                        case "wf_act_saymsg":
                        case "wf_act_kick_user":
                        case "wf_act_moveuser":
                        case "wf_act_togglefurni":
                        case "wf_act_givepoints":
                        case "wf_act_moverotate":
                        case "wf_act_matchfurni":
                        case "wf_act_give_phx":
                            if (!this.list_15.Contains(RoomItem_0))
                            {
                                this.list_15.Add(RoomItem_0);
                            }
                            break;
                        case "wf_cnd_trggrer_on_frn":
                        case "wf_cnd_furnis_hv_avtrs":
                        case "wf_cnd_has_furni_on":
                        case "wf_cnd_match_snapshot":
                        case "wf_cnd_time_more_than":
                        case "wf_cnd_time_less_than":
开发者ID:vaguinhogato,项目名称:Gold-Tree-Emulator,代码行数:67,代码来源:Room.cs

示例8: method_25


//.........这里部分代码省略.........
                            this.list_13.Add(class2);
                            break;
                        case "red_score":
                            this.list_10.Add(class2);
                            break;
                        case "yellow_score":
                            this.list_11.Add(class2);
                            break;
                        case "stickiepole":
                            this.list_3.Add(class2);
                            break;
                        case "wf_trg_onsay":
                        case "wf_trg_enterroom":
                        case "wf_trg_furnistate":
                        case "wf_trg_onfurni":
                        case "wf_trg_offfurni":
                        case "wf_trg_gameend":
                        case "wf_trg_gamestart":
                            if (!this.list_14.Contains(class2))
                            {
                                this.list_14.Add(class2);
                            }
                            break;
                        case "wf_trg_attime":
                            if (class2.string_2.Length <= 0)
                            {
                                class2.string_2 = "10";
                            }
                            if (!this.list_14.Contains(class2))
                            {
                                this.list_14.Add(class2);
                            }
                            class2.bool_0 = true;
                            class2.ReqUpdate(1);
                            break;
                        case "wf_trg_atscore":
                            if (!this.list_14.Contains(class2))
                            {
                                this.list_14.Add(class2);
                            }
                            class2.WiredAtTimeNeedReset = false;
                            class2.ReqUpdate(1);
                            break;
                        case "wf_trg_timer":
                            if (class2.string_2.Length <= 0)
                            {
                                class2.string_2 = "10";
                            }
                            if (!this.list_14.Contains(class2))
                            {
                                this.list_14.Add(class2);
                            }
                            class2.bool_0 = true;
                            class2.ReqUpdate(1);
                            break;
                        case "wf_act_saymsg":
                        case "wf_act_kick_user":
                        case "wf_act_moveuser":
                        case "wf_act_togglefurni":
                        case "wf_act_givepoints":
                        case "wf_act_moverotate":
                        case "wf_act_matchfurni":
                        case "wf_act_give_phx":
                            if (!this.list_15.Contains(class2))
                            {
                                this.list_15.Add(class2);
开发者ID:vaguinhogato,项目名称:Gold-Tree-Emulator,代码行数:67,代码来源:Room.cs

示例9: method_21


//.........这里部分代码省略.........
                            }
                            break;
                    }
                    try
                    {
                        List<RoomItem> list3 = this.method_93(RoomItem_0.Int32_0, RoomItem_0.Int32_1);
                        if (list3 == null)
                        {
                            result = false;
                            return result;
                        }
                        foreach (RoomItem current2 in list3)
                        {
                            text = current2.GetBaseItem().InteractionType.ToLower();
                            if (text != null)
                            {
                                int num4;
                                if (!(text == "wf_cnd_phx"))
                                {
                                    if (!(text == "wf_cnd_trggrer_on_frn"))
                                    {
                                        string[] collection;
                                        List<string> list;
                                        List<RoomItem> list4;
                                        if (!(text == "wf_cnd_furnis_hv_avtrs"))
                                        {
                                            if (!(text == "wf_cnd_has_furni_on"))
                                            {
                                                if (text == "wf_cnd_time_more_than")
                                                {
                                                    num++;
                                                    current2.ExtraData = "1";
                                                    current2.UpdateState(false, true);
                                                    current2.ReqUpdate(1);
                                                    if (current2.WiredCounter >= double.Parse(current2.string_2, CultureInfo.InvariantCulture))
                                                    {
                                                        num2++;
                                                        break;
                                                    }
                                                }
                                                else if (text == "wf_cnd_time_less_than")
                                                {
                                                    num++;
                                                    current2.ExtraData = "1";
                                                    current2.UpdateState(false, true);
                                                    current2.ReqUpdate(1);
                                                    if (current2.WiredCounter <= double.Parse(current2.string_2, CultureInfo.InvariantCulture))
                                                    {
                                                        num2++;
                                                        break;
                                                    }
                                                }
                                                else
                                                    continue;
                                            }
                                            num4 = num2;
                                            num++;
                                            current2.ExtraData = "1";
                                            current2.UpdateState(false, true);
                                            current2.ReqUpdate(1);
                                            current2.method_10();
                                            if (current2.string_3.Length <= 0)
                                            {
                                                continue;
                                            }
                                            collection = current2.string_3.Split(new char[]
开发者ID:vaguinhogato,项目名称:Gold-Tree-Emulator,代码行数:67,代码来源:Room.cs

示例10: OnPlace

 public override void OnPlace(GameClient Session, RoomItem RoomItem_0)
 {
     RoomItem_0.ExtraData = "-1";
     RoomItem_0.ReqUpdate(10);
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:5,代码来源:InteractorHabboWheel.cs

示例11: OnTrigger

 public override void OnTrigger(GameClient Session, RoomItem Item, int Request, bool UserHasRights)
 {
     if (UserHasRights)
     {
         int num = 0;
         if (Item.ExtraData.Length > 0)
         {
             num = int.Parse(Item.ExtraData);
         }
         if (Request == 0)
         {
             if (num <= -1)
             {
                 num = 0;
             }
             else
             {
                 if (num >= 0)
                 {
                     num = -1;
                 }
             }
         }
         else
         {
             if (Request >= 1)
             {
                 if (Request == 1)
                 {
                     if (!Item.method_8().frzTimer)
                     {
                         Item.method_8().frzTimer = true;
                         Item.ReqUpdate(1);
                         if (Session != null)
                         {
                             RoomUser RoomUser_ = Session.GetHabbo().CurrentRoom.GetRoomUserByHabbo(Session.GetHabbo().Id);
                             Item.method_8().method_14(RoomUser_);
                             Item.method_8().GetFreeze().StartGame();
                         }
                     }
                     else
                     {
                         Item.method_8().frzTimer = false;
                         Item.method_8().GetFreeze().StopGame();
                     }
                 }
                 else
                 {
                     if (Request == 2)
                     {
                         num += 60;
                         if (num >= 600)
                         {
                             num = 0;
                         }
                     }
                 }
             }
         }
         Item.ExtraData = num.ToString();
         Item.UpdateState(true, true);
     }
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:63,代码来源:InteractorFreezeCounter.cs

示例12: OnTrigger

        public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0)
        {
            if (bool_0)
            {
                int num = 0;
                if (RoomItem_0.ExtraData.Length > 0)
                {
                    num = int.Parse(RoomItem_0.ExtraData);
                }
                if (int_0 == 0)
                {
                    if (num <= -1)
                    {
                        num = 0;
                    }
                    else
                    {
                        if (num >= 0)
                        {
                            num = -1;
                        }
                    }
                }
                else
                {
                    if (int_0 >= 1)
                    {
                        if (int_0 == 1)
                        {
                            if (!RoomItem_0.bool_0)
                            {
                                RoomItem_0.bool_0 = true;
                                RoomItem_0.ReqUpdate(1);
                                if (Session != null)
                                {
                                    RoomUser RoomUser_ = Session.GetHabbo().CurrentRoom.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                    RoomItem_0.method_8().method_14(RoomUser_);
                                    foreach (RoomItem Item in RoomItem_0.method_8().Hashtable_0.Values)
                                    {
                                        if (Item.GetBaseItem().Name == "bb_apparatus")
                                        {
                                            Item.ExtraData = "1";
                                            Item.UpdateState(false, true);
                                            Item.ReqUpdate(1);
                                        }
                                    }
                                }
                            }
                            else
                            {
                                RoomItem_0.bool_0 = false;

                                foreach (RoomItem Item in RoomItem_0.method_8().Hashtable_0.Values)
                                {
                                    if (Item.GetBaseItem().Name == "bb_apparatus")
                                    {
                                        Item.ExtraData = "0";
                                        Item.UpdateState(false, true);
                                        Item.ReqUpdate(1);
                                    }
                                }
                            }
                        }
                        else
                        {
                            if (int_0 == 2)
                            {
                                num += 60;
                                if (num >= 600)
                                {
                                    num = 0;
                                }
                            }
                        }
                    }
                }
                RoomItem_0.ExtraData = num.ToString();
                RoomItem_0.UpdateState(true, true);
            }
        }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:80,代码来源:InteractorBanzaiScoreCounter.cs


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