/// <summary> /// Read the Textures from the Tex0 adt. /// </summary> public static void ReadTextures(BinaryReader reader, uint chunkSize, ADTModel data) { var textureSize = chunkSize / 4; for (var i = 0; i < textureSize; ++i) { var texFileDataId = reader.ReadUInt32(); if (!data.TextureFileDataId.Contains(texFileDataId)) { var textureData = BLP.Open(texFileDataId); if (textureData == null) { continue; } data.TextureFileDataId.Add(texFileDataId); data.TextureDatas.Add(texFileDataId, textureData); } } }