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


C# Response.AppendString方法代码示例

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


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

示例1: GetNavigatorResponse

        public void GetNavigatorResponse(Response Response, Boolean AllowEvents)
        {
            Response.AppendInt32(Id);
            Response.AppendBoolean(AllowEvents);
            Response.AppendStringWithBreak((AllowEvents) ? Event.Name : Name);
            Response.AppendStringWithBreak(BrickEngine.GetUserReactor().GetUsername(OwnerId));
            Response.AppendInt32(DoorState);
            Response.AppendInt32(RoomUserAmount);
            Response.AppendInt32(LimitUsers);
            Response.AppendStringWithBreak((AllowEvents) ? Event.Description : Description);
            Response.AppendBoolean(false);
            Response.AppendBoolean(BrickEngine.GetNavigatorManager().GetPrivateCategory(CategoryId).EnableTrading);
            Response.AppendInt32(Rating);
            Response.AppendInt32((AllowEvents) ? Event.CategoryId : CategoryId);

            if (AllowEvents)
            {
                Response.AppendString(Event.Started.ToShortTimeString());
            }

            Response.AppendChar(2);
            Response.AppendInt32((AllowEvents) ? Event.Tags.Count : Tags.Count);

            if (AllowEvents)
            {
                Event.Tags.ToList().ForEach(Response.AppendStringWithBreak);
            }
            else
            {
                Tags.ToList().ForEach(Response.AppendStringWithBreak);
            }

            Icon.GetResponse(Response);

            Response.AppendBoolean(true);
            Response.AppendBoolean(false);
        }
开发者ID:devMextur,项目名称:BrickEmulator,代码行数:37,代码来源:VirtualRoom.cs

示例2: GetStatusResponse

        public void GetStatusResponse(Response Response)
        {
            Response.AppendInt32(VirtualId);
            Response.AppendInt32(Point.X);
            Response.AppendInt32(Point.Y);
            Response.AppendStringWithBreak(Point.Z.ToString().Replace(",", "."));
            Response.AppendInt32(RotHead);
            Response.AppendInt32(RotBody);
            Response.AppendString("/");

            foreach (KeyValuePair<string, string> kvp in Statusses)
            {
                Response.AppendString(string.Format("{0} {1}/", kvp.Key, kvp.Value));
            }

            Response.AppendStringWithBreak("/");
        }
开发者ID:devMextur,项目名称:BrickEmulator,代码行数:17,代码来源:VirtualRoomUser.cs


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