// List of filenames for WMOs (world map objects) that appear in this map tile. // public void ReadMWMO(MemoryStream ADTobjstream, int MWMOsize) { StreamTools s = new StreamTools(); long currentPos = ADTobjstream.Position; while (ADTobjstream.Position < currentPos + MWMOsize) { int position = (int)(ADTobjstream.Position - currentPos); string path = s.ReadNullTerminatedString(ADTobjstream); if (path != "") { ADTObjData.modelBlockData.WMOPaths.Add(position, path); } } }