本文整理汇总了C#中Parser.ReadInt64方法的典型用法代码示例。如果您正苦于以下问题:C# Parser.ReadInt64方法的具体用法?C# Parser.ReadInt64怎么用?C# Parser.ReadInt64使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Parser
的用法示例。
在下文中一共展示了Parser.ReadInt64方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HandleRemove_Invite
public void HandleRemove_Invite(Parser packet)
{
WriteLine("Removee'sGuid: " + packet.ReadPackedGuid());
WriteLine("Removee'sInviteID: " + packet.ReadInt64());
WriteLine("unk: " + packet.ReadInt64());
WriteLine("EventID: " + packet.ReadInt64());
}
示例2: HandleVoiceLeave
public void HandleVoiceLeave(Parser packet)
{
var unk1 = packet.ReadInt64();
WriteLine("Unk Int64 1: " + unk1);
var unk2 = packet.ReadInt64();
WriteLine("Unk Int64 2: " + unk2);
}
示例3: HandleAvailableVoiceChannel
public void HandleAvailableVoiceChannel(Parser packet)
{
var unk = packet.ReadInt64();
WriteLine("Unk Int64 1: " + unk);
var type = packet.ReadByte();
WriteLine("Channel Type: " + type);
var name = packet.ReadCString();
WriteLine("Channel Name: " + name);
var unk2 = packet.ReadInt64();
WriteLine("Unk Int64 2: " + unk2);
}
示例4: HandleEventInviteAlert
public void HandleEventInviteAlert(Parser packet)
{
WriteLine("EventID: " + packet.ReadInt64());
WriteLine("EventName: " + packet.ReadString());
WriteLine("EventTime: " + packet.ReadTime());
WriteLine("EventFlags: " + packet.ReadInt32());
WriteLine("EventType: " + packet.ReadInt32());
WriteLine("DungeonID: " + packet.ReadInt32());
WriteLine("unk: " + packet.ReadInt32());
WriteLine("InviteID: " + packet.ReadInt64());
WriteLine("InviteStatus: " + packet.ReadInt8());
WriteLine("Mod_Type: " + packet.ReadInt8());
WriteLine("unk: " + packet.ReadInt32());
WriteLine("Inviter_1: " + packet.ReadPackedGuid());
WriteLine("Inviter_2: " + packet.ReadPackedGuid());
}
示例5: HandleVoiceRosterUpdate
public void HandleVoiceRosterUpdate(Parser packet)
{
var unk64 = packet.ReadInt64();
WriteLine("Unk Int64: " + unk64);
var chanId = packet.ReadInt16();
WriteLine("Channel ID: " + chanId);
var chanName = packet.ReadCString();
WriteLine("Channel Name: " + chanName);
var key = Encoding.UTF8.GetString(packet.ReadBytes(16));
WriteLine("Encryption Key: " + key);
var ip = packet.ReadInt32();
WriteLine("Voice Server IP: " + ip);
var count = packet.ReadByte();
WriteLine("Player Count: " + count);
var leaderGuid = packet.ReadGuid();
WriteLine("Leader GUID: " + leaderGuid);
var leaderFlags = packet.ReadByte();
WriteLine("Leader Flags: 0x" + leaderFlags.ToString("X2"));
var unk = packet.ReadByte();
WriteLine("Unk Byte 1: " + unk);
for (var i = 0; i < count - 1; i++)
{
var guid = packet.ReadGuid();
WriteLine("Player GUID: " + guid);
var idx = packet.ReadByte();
WriteLine("Index: " + idx);
var flags = packet.ReadByte();
WriteLine("Flags: 0x" + flags.ToString("X2"));
var unk2 = packet.ReadByte();
WriteLine("Unk Byte 2: " + unk2);
}
}
示例6: HandleGossipMenu
public void HandleGossipMenu(Parser packet)
{
packet.ReadInt64("Guid: ");
packet.ReadCString("Gossip Text: ");
packet.ReadInt32("Unk: ");
packet.ReadInt32("Unk: ");
var QuestAmount = packet.ReadByte();
WriteLine("Quest Amount: " + QuestAmount);
for (int i = 0; i < QuestAmount; i++)
{
packet.ReadInt32("Quest ID: " + i);
packet.ReadInt32("Unknown: " + i);
packet.ReadInt32("Unknown: " + i);
packet.ReadInt32("Unknown: " + i);
packet.ReadByte("Unknown: " + i);
packet.ReadCString("Quest Title: " + i);
}
}
示例7: HandleQuestOfferReward
public void HandleQuestOfferReward(Parser packet)
{
var guid = packet.ReadInt64();
var questId = packet.ReadInt32();
WriteLine("Quest ID: " + questId);
var title = packet.ReadCString();
WriteLine("Title: " + title);
var RewardText = packet.ReadCString();
WriteLine("Reward Text: " + RewardText);
var QGWT = packet.ReadCString();
WriteLine("QuestStart Window Text: " + QGWT);
var QTN = packet.ReadCString();
WriteLine("QuestStart Window Name: " + QTN);
var QTWT = packet.ReadCString();
WriteLine("QuestEnd Window Text: " + QTWT);
var QTN1 = packet.ReadCString();
WriteLine("QuestEnd Window Name: " + QTN1);
var QSMID = packet.ReadInt32();
WriteLine("QuestStart ModelID: " + QSMID);
var QEMID = packet.ReadInt32();
WriteLine("QuestEnd ModelID: " + QEMID);
var EnableNext = packet.ReadByte();
WriteLine("Enable Next: " + EnableNext);
var flags = (QuestFlag)(packet.ReadInt32() | 0xFFFF);
WriteLine("Quest Flag: " + flags);
var SP = packet.ReadInt32();
WriteLine("Suggested Players: " + SP);
var EmoteCount = packet.ReadInt32();
WriteLine("Emote Count: " + EmoteCount);
for (int i = 0; i < EmoteCount; ++i)
{
var EDelay = packet.ReadInt32();
WriteLine("Emote Delay: " + EDelay);
var EID = packet.ReadInt32();
WriteLine("Emote Id: " + EID);
}
var RewCIC = packet.ReadInt32();
WriteLine("Reward Choice Items Amount: " + RewCIC);
for (int i = 0; i < 6; ++i)
{
var RCID = packet.ReadInt32();
WriteLine("Reward Choice ItemId: " + RCID);
}
for (int i = 0; i < 6; ++i)
{
var RCIC = packet.ReadInt32();
WriteLine("Reward Choice Item Count: " + RCIC);
}
for (int i = 0; i < 6; ++i)
{
var RCIDis = packet.ReadInt32();
WriteLine("Reward Choice Item DisplayId: " + RCIDis);
}
var RewItCount = packet.ReadInt32();
WriteLine("Reward Item Count: " + RewItCount);
for (int i = 0; i < 4; ++i)
{
var RewItemId = packet.ReadInt32("RewItemId");
WriteLine("Reward Item Id: " + RewItemId);
}
for (int i = 0; i < 4; ++i)
{
var RewItemCount = packet.ReadInt32("RewItemCount");
WriteLine("Reward Item Count: " + RewItemCount);
}
for (int i = 0; i < 4; ++i)
{
var RewItemDisplayID = packet.ReadInt32("RewItemDisplay");
WriteLine("Reward Item DisplayId: " + RewItemDisplayID);
}
var RewMoney = packet.ReadInt32();
WriteLine("Reward Money: " + RewMoney);
var RewExp = packet.ReadInt32();
WriteLine("Reward Experience: " + RewExp);
var TitleId = packet.ReadInt32();
WriteLine("Reward Title Id: " + TitleId);
packet.ReadInt32("Unknown");
//.........这里部分代码省略.........
示例8: QUESTGIVER_QUEST_DETAILS
public void QUESTGIVER_QUEST_DETAILS(Parser packet)
{
var Guid1 = packet.ReadInt64();
var Guid2 = packet.ReadInt64();
var QID = packet.ReadInt32("QuestID");
WriteLine("Quest ID: " + QID);
packet.ReadCString("Quest Name");
packet.ReadCString("Quest Description");
packet.ReadCString("Quest Progress");
packet.ReadCString("QuestGiverWindowText");
packet.ReadCString("QuestTargetName");
packet.ReadCString("QuestGiverWindowText #2");
packet.ReadCString("QuestTargetName #2");
packet.ReadInt32("QuestTargetModelID");
packet.ReadInt32("QuestTargetModelID #2");
packet.ReadByte("AcceptActivate");
packet.ReadEnum<QuestFlag>("Flags");
packet.ReadInt32("SugesstedPlayers");
packet.ReadByte("QuestStartType");
packet.ReadByte("QuestStartType");
packet.ReadInt32("Required Spell");
packet.ReadInt32("GetRewChoiceItemsCount");
for (int i = 0; i < 6; ++i)
packet.ReadInt32("RewChoiceItemId");
for (int i = 0; i < 6; ++i)
packet.ReadInt32("RewChoiceItemCount");
for (int i = 0; i < 6; ++i)
packet.ReadInt32("RewChoiceItemDisplayId");
packet.ReadInt32("GetRewItemsCount");
for (int i = 0; i < 4; ++i)
packet.ReadInt32("RewItemId");
for (int i = 0; i < 4; ++i)
packet.ReadInt32("RewItemCount");
for (int i = 0; i < 4; ++i)
packet.ReadInt32("RewItemDisplayId");
packet.ReadInt32("Money Rew?");
packet.ReadInt32("Exp Rew?");
for (int i = 0; i < 6; i++)
packet.ReadInt32("Unknown");
for (int i = 0; i < 5; ++i)
packet.ReadInt32("RewRepFaction");
for (int i = 0; i < 5; ++i)
packet.ReadInt32("RewRepValueId");
for (int i = 0; i < 5; ++i)
packet.ReadInt32("RewRepValue");
packet.ReadInt32("Spell Cast");
packet.ReadInt32("Silent Spell Cast");
for (int i = 0; i < 4; i++)
packet.ReadInt32("Unknown");
for (int i = 0; i < 4; i++)
packet.ReadInt32("Unknown");
packet.ReadInt32("Unknown");
packet.ReadInt32("Unknown");
packet.ReadInt32("Something with Emote");
for (int i = 0; i < 4; ++i)
{
packet.ReadInt32("EmoteId");
packet.ReadInt32("EmoteDelay");
}
}
示例9: HandleTaxiNodes
public void HandleTaxiNodes(Parser packet)
{
packet.ReadInt64("Guid: ");
packet.ReadByte("Is Already Discovered: ");
}
示例10: HandleShowTaxiNodes
public void HandleShowTaxiNodes(Parser packet)
{
packet.ReadInt32("Always 1: ");
packet.ReadInt64("Guid: ");
packet.ReadInt32("Curloc: ");
//for (int i = 0; i < 82; i++)
//packet.ReadByte("Unknown " + i + " : ");
}
示例11: HandleGroupList
public void HandleGroupList(Parser packet)
{
var grouptype = (GroupTypeFlag)packet.ReadByte();
WriteLine("Group Type: " + grouptype);
var subgroup = packet.ReadByte();
WriteLine("Sub Group: " + subgroup);
var flags = (GroupUpdateFlag)packet.ReadByte();
WriteLine("Flags: " + flags);
var isbg = packet.ReadBoolean();
WriteLine("Is Battleground: " + isbg);
if (grouptype.HasFlag(GroupTypeFlag.LookingForDungeon))
{
var dungeonStatus = (InstanceStatus)packet.ReadByte();
WriteLine("Dungeon Status: " + dungeonStatus);
var lfgentry = ReadInt32();//packet.ReadLfgEntry();
WriteLine("LFG Entry: " + lfgentry);
}
var unkint2 = packet.ReadInt64();
WriteLine("Unk Int64: " + unkint2);
var counter = packet.ReadInt32();
WriteLine("Counter: " + counter);
var numFields = packet.ReadInt32();
WriteLine("Member Count: " + numFields);
for (var i = 0; i < numFields; i++)
{
var name = packet.ReadCString();
WriteLine("Name " + i + ": " + name);
var guid = packet.ReadGuid();
WriteLine("GUID " + i + ": " + guid);
var status = (GroupMemberStatusFlag)packet.ReadByte();
WriteLine("Status " + i + ": " + status);
var subgroup1 = packet.ReadByte();
WriteLine("Sub Group" + i + ": " + subgroup1);
var flags1 = (GroupUpdateFlag)packet.ReadByte();
WriteLine("Update Flags " + i + ": " + flags1);
var role = (LfgRoleFlag)packet.ReadByte();
WriteLine("Role " + i + ": " + role);
}
var leaderGuid = packet.ReadGuid();
WriteLine("Leader GUID: " + leaderGuid);
if (numFields <= 0)
return;
var loot = (LootMethod)packet.ReadByte();
WriteLine("Loot Method: " + loot);
var looterGuid = packet.ReadGuid();
WriteLine("Looter GUID: " + looterGuid);
var item = (ItemQuality)packet.ReadByte();
WriteLine("Loot Threshold: " + item);
var dungeonDifficulty = (MapDifficulty)packet.ReadByte();
WriteLine("Dungeon Difficulty: " + dungeonDifficulty);
var raidDifficulty = (MapDifficulty)packet.ReadByte();
WriteLine("Raid Difficulty: " + raidDifficulty);
var unkbyte3 = packet.ReadByte();
WriteLine("Unk Byte: " + unkbyte3);
}
示例12: HandleGuildQueryResponse
public void HandleGuildQueryResponse(Parser packet)
{
packet.ReadInt64("Guild ID");
packet.ReadCString("Name");
for (byte rank = 0; rank < 10; rank++)
packet.ReadCString("Rank " + rank + " name");
for (byte rank = 0; rank < 10; rank++)
packet.ReadInt32("Rank " + rank + " real rank ID");
// ignore these as they seem to always be identical to the above loop
for (byte rank = 0; rank < 10; rank++)
packet.ReadInt32();
packet.ReadInt32("Emblem style");
packet.ReadInt32("Emblem color");
packet.ReadInt32("Emblem border style");
packet.ReadInt32("Emblem border color");
packet.ReadInt32("Emblem background color");
packet.ReadInt32("Unk int from WotLK");
}
示例13: HandleSenddCalendar
public void HandleSenddCalendar(Parser packet)
{
var inviteCount = packet.ReadInt32("InviteCount");
for (var i = 0; i < inviteCount; ++i)
{
WriteLine(" EventID: " + packet.ReadInt64());
WriteLine(" InviteID: " + packet.ReadInt64());
WriteLine(" InviteStats: " + packet.ReadInt8());
WriteLine(" Mod_Type: " + packet.ReadInt8());
WriteLine(" Invite_Type: " + packet.ReadInt8());
WriteLine(" InvitedBy: " + packet.ReadPackedGuid());
WriteLine("");
}
var EventCount = packet.ReadInt32("EventCount");
for (var i = 0; i < EventCount; ++i)
{
WriteLine(" EventID: " + packet.ReadInt64());
WriteLine(" EventName: " + packet.ReadString());
WriteLine(" EventModFlags: " + packet.ReadInt32());
WriteLine(" EventDate: " + packet.ReadPackedTime());
WriteLine(" EventFlags: " + packet.ReadInt32());
WriteLine(" DungeonID: " + packet.ReadInt32());
WriteLine(" unk: " + packet.ReadInt64());
WriteLine(" InvitedBy: " + packet.ReadPackedGuid());
WriteLine("");
}
WriteLine("CurrentUnixTime: " + packet.ReadTime());
WriteLine("CurrentPacketTime: " + packet.ReadPackedTime());
var InstanceResetCount = packet.ReadInt32("InstanceResetCount");
for (var i = 0; i < InstanceResetCount; ++i)
{
WriteLine(" MapID: " + packet.ReadInt32());
WriteLine(" Difficulty: " + packet.ReadInt32());
WriteLine(" ResetTime: " + packet.ReadTime());
WriteLine(" RaidID: " + packet.ReadInt64());
WriteLine("");
}
WriteLine("BaseTime: " + packet.ReadTime());
var RaidResetCount = packet.ReadInt32("RaidResetCount");
for (var i = 0; i < RaidResetCount; ++i)
{
WriteLine(" MapID: " + packet.ReadInt32());
WriteLine(" ResetTime: " + packet.ReadTime());
WriteLine(" NegativeOffset: " + packet.ReadInt32());
WriteLine("");
}
var Counter = packet.ReadInt32();
WriteLine("Counter: " + Counter + "(Never seen this larger than 0)");
}
示例14: HandleSendEvent
public void HandleSendEvent(Parser packet)
{
WriteLine("Invite_Type: " + packet.ReadInt8());
WriteLine("Creator " + packet.ReadPackedGuid());
WriteLine("EventID: " + packet.ReadInt32());
WriteLine("unk: " + packet.ReadInt32());
WriteLine("EventName: " + packet.ReadString());
WriteLine("EventDescription: " + packet.ReadString());
WriteLine("Event_Type: " + packet.ReadInt8());
WriteLine("Repeat_Option: " + packet.ReadInt8());
WriteLine("MaxSize: " + packet.ReadInt32());
WriteLine("DungeonID: " + packet.ReadInt32());
WriteLine("EventFlags: " + packet.ReadInt32());
WriteLine("EventTime: " + packet.ReadPackedTime());
WriteLine("LockOutTime: " + packet.ReadInt32());
WriteLine("unk: " + packet.ReadInt32());
WriteLine("unk: " + packet.ReadInt32());
var inviteCount = packet.ReadInt32("InviteCount");
for (var i = 0; i < inviteCount; ++i)
{
WriteLine(" PlayerGuid: " + packet.ReadPackedGuid());
WriteLine(" PlayerLevel: " + packet.ReadInt8());
WriteLine(" InviteStatus: " + packet.ReadInt8());
WriteLine(" Mod_Type: " + packet.ReadInt8());
WriteLine(" unk: " + packet.ReadInt8());
WriteLine(" inviteID: " + packet.ReadInt64());
WriteLine(" unk: " + packet.ReadInt8());
WriteLine(" unk: " + packet.ReadInt32());
WriteLine("");
}
}