WowPacketParser.Misc.WowGuid64.GetHighGuidTypeLegacy C# (CSharp) 메소드

GetHighGuidTypeLegacy() 공개 메소드

public GetHighGuidTypeLegacy ( ) : HighGuidTypeLegacy
리턴 HighGuidTypeLegacy
        public HighGuidTypeLegacy GetHighGuidTypeLegacy()
        {
            if (Low == 0)
                return HighGuidTypeLegacy.None;

            var highGUID = (HighGuidTypeLegacy)((Low & 0xF0F0000000000000) >> 52);
            switch ((int)highGUID & 0xF00)
            {
                case 0x0:
                    return HighGuidTypeLegacy.Player;
                case 0x400:
                    return HighGuidTypeLegacy.Item;
                default:
                    return highGUID;
            }
        }