本文整理汇总了C#中Uber.Messages.ServerPacket.AppendString方法的典型用法代码示例。如果您正苦于以下问题:C# ServerPacket.AppendString方法的具体用法?C# ServerPacket.AppendString怎么用?C# ServerPacket.AppendString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Uber.Messages.ServerPacket
的用法示例。
在下文中一共展示了ServerPacket.AppendString方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DeliverInstantMessage
public void DeliverInstantMessage(string Message, uint ConversationId)
{
ServerPacket InstantMessage = new ServerPacket(134);
InstantMessage.AppendUInt(ConversationId);
InstantMessage.AppendString(Message);
GetClient().SendPacket(InstantMessage);
}
示例2: SerializeRelativeHeightmap
public ServerPacket SerializeRelativeHeightmap()
{
ServerPacket Message = new ServerPacket(470);
string[] tmpHeightmap = Heightmap.Split(Convert.ToChar(13));
for (int y = 0; y < MapSizeY; y++)
{
if (y > 0)
{
tmpHeightmap[y] = tmpHeightmap[y].Substring(1);
}
for (int x = 0; x < MapSizeX; x++)
{
string Square = tmpHeightmap[y].Substring(x, 1).Trim().ToLower();
if (DoorX == x && DoorY == y)
{
Square = (int)DoorZ + "";
}
Message.AppendString(Square);
}
Message.AppendString("" + Convert.ToChar(13));
}
return Message;
}
示例3: hi
public void hi()
{
ServerPacket SendReminder = new ServerPacket(7);
SendReminder.AppendString("@Ghabbo_clubKPAHIIHQfHHHH");
SendMessage(SendReminder);
}
示例4: SerializeStatus
public void SerializeStatus(ServerPacket Message)
{
if (IsSpectator)
{
return;
}
Message.AppendInt32(VirtualId);
Message.AppendInt32(X);
Message.AppendInt32(Y);
Message.AppendStringWithBreak(Z.ToString().Replace(',','.'));
Message.AppendInt32(RotHead);
Message.AppendInt32(RotBody);
Message.AppendString("/");
foreach (KeyValuePair<string, string> Status in Statusses)
{
Message.AppendString(Status.Key);
Message.AppendString(" ");
Message.AppendString(Status.Value);
Message.AppendString("/");
}
Message.AppendStringWithBreak("/");
}