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


C# ServerMessage.Init方法代码示例

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


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

示例1: UpdateState

 internal void UpdateState(bool bool_5, bool bool_6)
 {
     if (bool_5)
     {
         this.method_8().method_80(this);
     }
     if (bool_6)
     {
         ServerMessage Message = new ServerMessage();
         if (this.Boolean_2)
         {
             Message.Init(88u);
             Message.AppendStringWithBreak(this.uint_0.ToString());
             Message.AppendStringWithBreak(this.ExtraData);
         }
         else
         {
             Message.Init(85u);
             this.method_6(Message);
         }
         this.method_8().SendMessage(Message, null);
     }
 }
开发者ID:Waguiinhocvp,项目名称:Gold-Tree-Emulator,代码行数:23,代码来源:RoomItem.cs

示例2: SendNotif

 public void SendNotif(string string_0, int int_0)
 {
     ServerMessage nMessage = new ServerMessage();
     switch (int_0)
     {
     case 0:
         nMessage.Init(161u);
         break;
     case 1:
         nMessage.Init(139u);
         break;
     case 2:
         nMessage.Init(810u);
         nMessage.AppendUInt(1u);
         break;
     default:
         nMessage.Init(161u);
         break;
     }
     nMessage.AppendStringWithBreak(string_0);
     this.GetConnection().SendMessage(nMessage);
 }
开发者ID:GoldTreeTheBest,项目名称:Gold-Tree-Emulator,代码行数:22,代码来源:GameClient.cs

示例3: method_40

 internal void method_40(RoomItem RoomItem_0, int int_17, int int_18, uint uint_2, double double_3)
 {
     ServerMessage Message = new ServerMessage();
     Message.Init(230u);
     Message.AppendInt32(RoomItem_0.Int32_0);
     Message.AppendInt32(RoomItem_0.Int32_1);
     Message.AppendInt32(int_17);
     Message.AppendInt32(int_18);
     Message.AppendInt32(1);
     Message.AppendUInt(RoomItem_0.uint_0);
     Message.AppendStringWithBreak(RoomItem_0.Double_0.ToString().Replace(',', '.'));
     Message.AppendStringWithBreak(double_3.ToString().Replace(',', '.'));
     Message.AppendUInt(uint_2);
     this.SendMessage(Message, null);
     this.method_81(RoomItem_0, int_17, int_18, double_3);
 }
开发者ID:vaguinhogato,项目名称:Gold-Tree-Emulator,代码行数:16,代码来源:Room.cs

示例4: method_42

 private void method_42(RoomUser RoomUser_1, ThreeDCoord gstruct1_1, uint uint_2, double double_3)
 {
     ServerMessage Message = new ServerMessage();
     Message.Init(230u);
     Message.AppendInt32(RoomUser_1.int_3);
     Message.AppendInt32(RoomUser_1.int_4);
     Message.AppendInt32(gstruct1_1.x);
     Message.AppendInt32(gstruct1_1.y);
     Message.AppendInt32(0);
     Message.AppendUInt(uint_2);
     Message.AppendString("J");
     Message.AppendInt32(RoomUser_1.VirtualId);
     Message.AppendStringWithBreak(RoomUser_1.double_0.ToString().Replace(',', '.'));
     Message.AppendStringWithBreak(double_3.ToString().Replace(',', '.'));
     this.SendMessage(Message, null);
     this.byte_0[RoomUser_1.int_3, RoomUser_1.int_4] = 1;
     RoomUser_1.int_3 = gstruct1_1.x;
     RoomUser_1.int_4 = gstruct1_1.y;
     RoomUser_1.double_0 = double_3;
     RoomUser_1.int_12 = gstruct1_1.x;
     RoomUser_1.int_13 = gstruct1_1.y;
     RoomUser_1.double_1 = double_3;
     RoomUser_1.int_9 = 2;
     this.byte_0[RoomUser_1.int_3, RoomUser_1.int_4] = 0;
     this.method_87(RoomUser_1, false, true);
 }
开发者ID:vaguinhogato,项目名称:Gold-Tree-Emulator,代码行数:26,代码来源:Room.cs

示例5: method_30

 internal List<ServerMessage> method_30()
 {
     List<ServerMessage> list = new List<ServerMessage>();
     int num = 0;
     ServerMessage Message = new ServerMessage();
     Message.Init(161u);
     Message.AppendStringWithBreak("Users online:\r");
     for (int i = 0; i < this.Session.Length; i++)
     {
         GameClient @class = this.Session[i];
         if (@class != null && @class.GetHabbo() != null)
         {
             if (num > 20)
             {
                 list.Add(Message);
                 num = 0;
                 Message = new ServerMessage();
                 Message.Init(161u);
             }
             num++;
             Message.AppendStringWithBreak(string.Concat(new object[]
             {
                 @class.GetHabbo().Username,
                 " {",
                 @class.GetHabbo().Rank,
                 "}\r"
             }));
         }
     }
     list.Add(Message);
     return list;
 }
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:32,代码来源:GameClientManager.cs


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