Ejemplo n.º 1
0
        public static RoadAlphaMap Read(DatReader datReader)
        {
            RoadAlphaMap obj = new RoadAlphaMap();

            obj.RCode      = datReader.ReadUInt32();
            obj.RoadTexGID = datReader.ReadUInt32();
            return(obj);
        }
Ejemplo n.º 2
0
        public static TexMerge Read(DatReader datReader)
        {
            TexMerge obj = new TexMerge();

            obj.BaseTexSize = datReader.ReadUInt32();

            uint num_corner_terrain_maps = datReader.ReadUInt32();
            for (uint i = 0; i < num_corner_terrain_maps; i++)
                obj.CornerTerrainMaps.Add(TerrainAlphaMap.Read(datReader));

            uint num_side_terrain_maps = datReader.ReadUInt32();
            for (uint i = 0; i < num_side_terrain_maps; i++)
                obj.SideTerrainMaps.Add(TerrainAlphaMap.Read(datReader));

            uint num_road_maps = datReader.ReadUInt32();
            for (uint i = 0; i < num_road_maps; i++)
                obj.RoadMaps.Add(RoadAlphaMap.Read(datReader));

            uint num_terrain_desc = datReader.ReadUInt32();
            for (uint i = 0; i < num_terrain_desc; i++)
                obj.TerrainDesc.Add(TMTerrainDesc.Read(datReader));

            return obj;
        }