상속: WowGuid
예제 #1
0
        public static bool CheckFilter(WowGuid128 guid)
        {
            var result = true;

            if (guid.GetObjectType() == ObjectType.Player || guid.HasEntry())
                result = CheckFilter(Utilities.ObjectTypeToStore(guid.GetObjectType()), (int)guid.GetEntry());

            return result;
        }
예제 #2
0
파일: Filters.cs 프로젝트: Stewa91/123
        public static bool CheckFilter(WowGuid128 guid)
        {
            var result = true;

            if (guid.GetObjectType() == ObjectType.Player || guid.HasEntry())
            {
                result = CheckFilter(Utilities.ObjectTypeToStore(guid.GetObjectType()), (int)guid.GetEntry());
            }

            return(result);
        }
예제 #3
0
        public WowGuid ReadPackedGuid128()
        {
            var guidLowMask  = ReadByte();
            var guidHighMask = ReadByte();

            var guid = new WowGuid128(ReadPackedUInt64(guidLowMask), ReadPackedUInt64(guidHighMask));

            if (WriteToFile)
            {
                WriteToFile = Filters.CheckFilter(guid);
            }

            return(guid);
        }