WowPacketParser.Misc.WowGuid64.GetEntry C# (CSharp) Method

GetEntry() public method

public GetEntry ( ) : uint
return uint
        public override uint GetEntry()
        {
            if (!HasEntry())
                return 0;

            if (ClientVersion.AddedInVersion(ClientVersionBuild.V4_0_1_13164))
                return (uint)((Low & 0x000FFFFF00000000) >> 32);
            return     (uint)((Low & 0x000FFFFFFF000000) >> 24);
        }

Usage Example

Example #1
0
        public void TestGetEntry()
        {
            var guid1 = new WowGuid64(0xF130005C0500105F);
            var guid2 = new WowGuid64(0x600000002B2D7C9);
            var guid3 = new WowGuid64(0);

            Assert.AreEqual(0x5C05, guid1.GetEntry());
            Assert.AreEqual(0, guid2.GetEntry());
            Assert.AreEqual(0, guid3.GetEntry());
        }
All Usage Examples Of WowPacketParser.Misc.WowGuid64::GetEntry