本文整理汇总了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);
}
示例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("/");
}