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


C# ServerMessage.AppendRawUInt方法代码示例

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


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

示例1: method_24

 internal List<RoomItem> method_24(GameClient Session)
 {
     List<RoomItem> list = new List<RoomItem>();
     foreach (RoomItem @class in this.Hashtable_0.Values)
     {
         @class.Class69_0.OnRemove(Session, @class);
         ServerMessage Message = new ServerMessage(94u);
         Message.AppendRawUInt(@class.uint_0);
         Message.AppendStringWithBreak("");
         Message.AppendBoolean(false);
         this.SendMessage(Message, null);
         list.Add(@class);
     }
     foreach (RoomItem @class in this.Hashtable_1.Values)
     {
         @class.Class69_0.OnRemove(Session, @class);
         ServerMessage Message = new ServerMessage(84u);
         Message.AppendRawUInt(@class.uint_0);
         Message.AppendStringWithBreak("");
         Message.AppendBoolean(false);
         this.SendMessage(Message, null);
         list.Add(@class);
     }
     this.hashtable_4.Clear();
     this.hashtable_0.Clear();
     this.hashtable_1.Clear();
     this.hashtable_2.Clear();
     this.hashtable_3.Clear();
     using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient())
     {
         class2.ExecuteQuery(string.Concat(new object[]
         {
             "UPDATE items SET room_id = 0, user_id = '",
             Session.GetHabbo().Id,
             "' WHERE room_id = '",
             this.Id,
             "'"
         }));
     }
     this.method_22();
     this.method_83();
     return list;
 }
开发者ID:vaguinhogato,项目名称:Gold-Tree-Emulator,代码行数:43,代码来源:Room.cs

示例2: method_29

 public void method_29(GameClient Session, uint uint_2, bool bool_13, bool bool_14)
 {
     RoomItem @class = this.method_28(uint_2);
     if (@class != null)
     {
         Dictionary<int, AffectedTile> dictionary = this.method_94(@class.GetBaseItem().Length, @class.GetBaseItem().Width, @class.Int32_0, @class.Int32_1, @class.int_3);
         @class.Class69_0.OnRemove(Session, @class);
         if (@class.Boolean_1)
         {
             ServerMessage Message = new ServerMessage(84u);
             Message.AppendRawUInt(@class.uint_0);
             Message.AppendStringWithBreak("");
             Message.AppendBoolean(false);
             this.SendMessage(Message, null);
         }
         else
         {
             if (@class.Boolean_2)
             {
                 ServerMessage Message = new ServerMessage(94u);
                 Message.AppendRawUInt(@class.uint_0);
                 Message.AppendStringWithBreak("");
                 Message.AppendBoolean(false);
                 this.SendMessage(Message, null);
                 string text = @class.GetBaseItem().InteractionType.ToLower();
                 switch (text)
                 {
                     case "bb_patch":
                         this.list_5.Remove(@class);
                         if (@class.ExtraData == "5")
                         {
                             this.list_6.Remove(@class);
                         }
                         else
                         {
                             if (@class.ExtraData == "8")
                             {
                                 this.list_7.Remove(@class);
                             }
                             else
                             {
                                 if (@class.ExtraData == "11")
                                 {
                                     this.list_9.Remove(@class);
                                 }
                                 else
                                 {
                                     if (@class.ExtraData == "14")
                                     {
                                         this.list_8.Remove(@class);
                                     }
                                 }
                             }
                         }
                         break;
                     case "blue_score":
                         this.list_12.Remove(@class);
                         break;
                     case "green_score":
                         this.list_13.Remove(@class);
                         break;
                     case "red_score":
                         this.list_10.Remove(@class);
                         break;
                     case "yellow_score":
                         this.list_11.Remove(@class);
                         break;
                     case "stickiepole":
                         this.list_3.Remove(@class);
                         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":
                         this.list_14.Remove(@class);
                         break;
                     case "wf_trg_attime":
                         @class.bool_0 = false;
                         this.list_14.Remove(@class);
                         break;
                     case "wf_trg_timer":
                         @class.bool_0 = false;
                         this.list_14.Remove(@class);
                         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":
                         this.list_15.Remove(@class);
                         break;
                     case "wf_cnd_trggrer_on_frn":
                     case "wf_cnd_furnis_hv_avtrs":
//.........这里部分代码省略.........
开发者ID:vaguinhogato,项目名称:Gold-Tree-Emulator,代码行数:101,代码来源:Room.cs


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