本文整理汇总了C#中UltimaXNA.Core.Network.PacketReader.ReadUInt64方法的典型用法代码示例。如果您正苦于以下问题:C# PacketReader.ReadUInt64方法的具体用法?C# PacketReader.ReadUInt64怎么用?C# PacketReader.ReadUInt64使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UltimaXNA.Core.Network.PacketReader
的用法示例。
在下文中一共展示了PacketReader.ReadUInt64方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ProtocolExtensionPacket
public ProtocolExtensionPacket(PacketReader reader)
: base(0xF0, "Protocol Extension Packet")
{
Subcommand = reader.ReadByte();
switch (Subcommand)
{
case SubcommandNegotiateFeatures:
DisabledFeatures = (AssistantFeatures)reader.ReadUInt64();
break;
}
}
示例2: receiveSpellBookContents
private void receiveSpellBookContents(PacketReader reader)
{
ushort unknown = reader.ReadUInt16(); // always 1
Serial serial = (Serial)reader.ReadInt32();
ushort itemID = reader.ReadUInt16();
ushort spellbookType = reader.ReadUInt16(); // 1==regular, 101=necro, 201=paladin, 401=bushido, 501=ninjitsu, 601=spellweaving
ulong spellBitfields = reader.ReadUInt64(); // first bit of first byte = spell #1, second bit of first byte = spell #2, first bit of second byte = spell #8, etc
Spellbook = new SpellbookData(serial, itemID, spellbookType, spellBitfields);
}