Created
July 4, 2011 00:05
-
-
Save LordJZ/1062732 to your computer and use it in GitHub Desktop.
SMSG_INSTANCE_INFO as of 4.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Flags] | |
| public enum InstanceInfoFlags | |
| { | |
| None = 0, | |
| TrialLevelCap = 0x40, | |
| TrialMoneyCap = 0x80, | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Kamilla.WorldOfWarcraft.Latest.Parsers.Misc | |
| { | |
| [WowPacketParser(WowOpcodes.SMSG_INSTANCE_INFO)] | |
| internal sealed class InstanceInfoParser : WowPacketParser | |
| { | |
| protected override void Parse() | |
| { | |
| var flags = (InstanceInfoFlags)Reader.ReadByte(); | |
| Output.AppendLine("Flags: " + flags); | |
| Output.AppendLine("Last Weekly Reset: " + Reader.ReadUInt32().AsUnixTime()); | |
| Output.AppendLine("Instance Difficulty: " + (RaidDifficulty)Reader.ReadUInt32()); | |
| if ((flags & InstanceInfoFlags.TrialMoneyCap) != 0) | |
| Output.AppendLine("Trial Money Cap: " + new Money(Reader.ReadUInt32())); | |
| Output.AppendLine("Is On Tournament Realm: " + Reader.ReadByte()); | |
| if ((flags & InstanceInfoFlags.TrialLevelCap) != 0) | |
| Output.AppendLine("Trial Level Cap: " + Reader.ReadUInt32()); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment