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; }
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); }
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); }