本文整理匯總了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);
}