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