public static TerrainDesc Read(DatReader datReader) { TerrainDesc obj = new TerrainDesc(); uint num_terrain_types = datReader.ReadUInt32(); for (uint i = 0; i < num_terrain_types; i++) { obj.TerrainTypes.Add(TerrainType.Read(datReader)); } obj.LandSurfaces = LandSurf.Read(datReader); return(obj); }
public static LandSurf Read(DatReader datReader) { LandSurf obj = new LandSurf(); obj.HasPalShift = datReader.ReadUInt32(); // This is always 0 if (obj.HasPalShift == 1) { // PalShift.Read would go here, if it ever actually existed...which it doesn't. } else { obj.TexMerge = TexMerge.Read(datReader); } return(obj); }