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


C# ServerMessage.AppendRawString方法代码示例

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


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

示例1: Compose

        public static ServerMessage Compose(List<RoomActor> Actors)
        {
            ServerMessage Message = new ServerMessage(OpcodesOut.ROOM_USER_STATUS_LIST);
            Message.AppendInt32(Actors.Count);

            foreach (RoomActor Actor in Actors)
            {
                // a|rBPCRB0.0JJ//
                Message.AppendUInt32(Actor.Id);
                Message.AppendInt32(Actor.Position.X);
                Message.AppendInt32(Actor.Position.Y);
                Message.AppendRawDouble(Actor.Position.Z);
                Message.AppendInt32(Actor.HeadRotation);
                Message.AppendInt32(Actor.BodyRotation);
                Message.AppendRawString("/");

                foreach (KeyValuePair<string, string> Status in Actor.UserStatusses)
                {
                    Message.AppendRawString(Status.Key + ' ' + Status.Value + '/');
                }

                Message.AppendStringWithBreak("/");
            }

            return Message;
        }
开发者ID:DaimOwns,项目名称:ProRP,代码行数:26,代码来源:RoomUserStatusListComposer.cs

示例2: Compose

 public static ServerMessage Compose()
 {
     // com.sulake.habbo.communication.messages.incoming.friendlist.EventStreamEvent;
     ServerMessage Message = new ServerMessage(OpcodesOut.GET_STREAM_EVENT);
     Message.AppendRawString("SBsMlUtBH31266408pquadro20mhttp://www.habbo.com/habbo-imaging/avatar/hd-195-27.ch-215-62.lg-275-62.sh-295-62.ha-1004-62,s-2.g-0.d-2.h-2.a-0,04e3deb736d1e0067d943163b8a333c2.gifYIDQAHI36954090.:DarkSaske:.s{`UtBH31266408pquadro20mhttp://www.habbo.com/habbo-imaging/avatar/hd-195-27.ch-215-62.lg-275-62.sh-295-62.ha-1004-62,s-2.g-0.d-2.h-2.a-0,04e3deb736d1e0067d943163b8a333c2.gifYIDQAHI45789055..S3phiroth..ifqR}H31266408pquadro20mhttp://www.habbo.com/habbo-imaging/avatar/hd-195-27.ch-215-62.lg-275-62.sh-295-62.ha-1004-62,s-2.g-0.d-2.h-2.a-0,04e3deb736d1e0067d943163b8a333c2.gifZvOQAHI45485689.Scissionistaj^Y`{H31266408pquadro20mhttp://www.habbo.com/habbo-imaging/avatar/hd-195-27.ch-215-62.lg-275-62.sh-295-62.ha-1004-62,s-2.g-0.d-2.h-2.a-0,04e3deb736d1e0067d943163b8a333c2.gifY|OQAHI31837771.:ketti94:.klJ`{H31266408pquadro20mhttp://www.habbo.com/habbo-imaging/avatar/hd-195-27.ch-215-62.lg-275-62.sh-295-62.ha-1004-62,s-2.g-0.d-2.h-2.a-0,04e3deb736d1e0067d943163b8a333c2.gifY|OQAHI45746957Sparvierej^}_{H31266408pquadro20mhttp://www.habbo.com/habbo-imaging/avatar/hd-195-27.ch-215-62.lg-275-62.sh-295-62.ha-1004-62,s-2.g-0.d-2.h-2.a-0,04e3deb736d1e0067d943163b8a333c2.gifY|OQAHI41683680-.:TheRed:.-hI|O{H31266408pquadro20mhttp://www.habbo.com/habbo-imaging/avatar/hd-195-27.ch-215-62.lg-275-62.sh-295-62.ha-1004-62,s-2.g-0.d-2.h-2.a-0,04e3deb736d1e0067d943163b8a333c2.gifX}OQAHI33319042.:Habbina94:.tLxTqBJ31266408pquadro20mhttp://www.habbo.com/habbo-imaging/badge/ACH_SummerQuestCompleted100ef9b85a9ef6131096c94669a04cdea1.png[r[KHIACH_SummerQuestCompleted10twLkBH31266408pquadro20mhttp://www.habbo.com/habbo-imaging/avatar/hd-195-27.ch-215-62.lg-275-62.sh-295-62.ha-1004-62,s-2.g-0.d-2.h-2.a-0,04e3deb736d1e0067d943163b8a333c2.gifZr[QAHI36814141GoofyllllltvLkBH31266408pquadro20mhttp://www.habbo.com/habbo-imaging/avatar/hd-195-27.ch-215-62.lg-275-62.sh-295-62.ha-1004-62,s-2.g-0.d-2.h-2.a-0,04e3deb736d1e0067d943163b8a333c2.gifZr[QAHI29206050ricky94ctwMGMkBH31266408pquadro20mhttp://www.habbo.com/habbo-imaging/avatar/hd-195-27.ch-215-62.lg-275-62.sh-295-62.ha-1004-62,s-2.g-0.d-2.h-2.a-0,04e3deb736d1e0067d943163b8a333c2.gifZr[QAHI31329620,HiPNOTiiiC");
     return Message;
 }
开发者ID:DaimOwns,项目名称:ProRP,代码行数:7,代码来源:EventStreamComposer.cs


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