本文整理匯總了C#中UltimaXNA.Core.Network.PacketReader.ReadUnicodeStringReverse方法的典型用法代碼示例。如果您正苦於以下問題:C# PacketReader.ReadUnicodeStringReverse方法的具體用法?C# PacketReader.ReadUnicodeStringReverse怎麽用?C# PacketReader.ReadUnicodeStringReverse使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類UltimaXNA.Core.Network.PacketReader
的用法示例。
在下文中一共展示了PacketReader.ReadUnicodeStringReverse方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: ObjectPropertyListPacket
public ObjectPropertyListPacket(PacketReader reader)
: base(0xD6, "Object Property List")
{
reader.ReadInt16(); // Always 0x0001
m_serial = reader.ReadInt32();
reader.ReadInt16(); // Always 0x0000
m_hash = reader.ReadInt32();
m_clilocs = new List<int>();
m_arguments = new List<string>();
// Loop of all the item/creature's properties to display in the order to display them. The name is always the first entry.
int clilocId = reader.ReadInt32();
while (clilocId != 0)
{
m_clilocs.Add(clilocId);
int textLength = reader.ReadUInt16();
string args = string.Empty;
if (textLength > 0)
{
args = reader.ReadUnicodeStringReverse(textLength / 2);
}
m_arguments.Add(args);
clilocId = reader.ReadInt32();
}
}