本文整理匯總了C#中UltimaXNA.Core.Network.PacketReader.ReadUnicodeString方法的典型用法代碼示例。如果您正苦於以下問題:C# PacketReader.ReadUnicodeString方法的具體用法?C# PacketReader.ReadUnicodeString怎麽用?C# PacketReader.ReadUnicodeString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類UltimaXNA.Core.Network.PacketReader
的用法示例。
在下文中一共展示了PacketReader.ReadUnicodeString方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: UnicodeMessagePacket
public UnicodeMessagePacket(PacketReader reader)
: base(0xAE, "Unicode Message")
{
Serial = reader.ReadInt32();
Model = reader.ReadInt16();
MsgType = (MessageTypes)reader.ReadByte();
Hue = reader.ReadUInt16();
Font = reader.ReadInt16();
Language = reader.ReadString(4).Trim();
SpeakerName = reader.ReadString(30).Trim();
Text = reader.ReadUnicodeString((reader.Buffer.Length - 48) / 2);
}
示例2: UnicodeMessagePacket
public UnicodeMessagePacket(PacketReader reader)
: base(0xAE, "Unicode Message")
{
m_serial = reader.ReadInt32();
m_model = reader.ReadInt16();
m_msgType = (MessageTypes)reader.ReadByte();
m_hue = reader.ReadInt16();
m_font = reader.ReadInt16();
m_language = reader.ReadInt32();
m_speakerName = reader.ReadString(30);
m_spokenText = reader.ReadUnicodeString((reader.Buffer.Length - 48) / 2);
}
示例3: PartyMessageInfo
public PartyMessageInfo(PacketReader reader, bool isPrivate)
{
IsPrivate = isPrivate;
Source = (Serial)reader.ReadInt32();
Message = reader.ReadUnicodeString();
}