C# Class TerrainExtractor.Extractors.TileExtractor

Mostrar archivo Open project: WCell/WCell-Terrain

Public Properties

Property Type Description
LoadedM2Ids HashSet
LoadedWmoIds HashSet
ModelsToIgnore HashSet
TerrainInfo ].ADT[

Public Methods

Method Description
ExportMapTiles ( WDT wdt ) : void

Writes all height maps to the default MapDir

ExtractMapTiles ( WDT wdt ) : ].ADT[
ExtractWMOOnly ( WDT wdt ) : ADT
Prepare ( ) : void
WriteTileInfo ( FileStream file, ADT adt ) : void

Private Methods

Method Description
CalculateModelBounds ( MapDoodadDefinition def, M2Model model ) : void
ClearObjectData ( ) : void
LoadQuadTree ( ADT adt ) : void
LoadWMO ( WCell.MPQTool.MpqManager manager, MapObjectDefinition def ) : void
PrepareChunk ( ADT adt, int chunkX, int chunkY ) : void
PrepareChunkInfo ( WCell.MPQTool.MpqManager manager, ADT adt ) : void
PrepareM2Info ( MapDoodadDefinition def, M2Model model ) : void
PrepareWMOInfo ( MapObjectDefinition def ) : void
PrepareWaterInfo ( MH2O water ) : void
ReduceTerrainTris ( ADT adt ) : void
WriteChunkHeightMap ( BinaryWriter writer, ADTChunk chunk ) : void
WriteChunkHolesMap ( BinaryWriter writer, bool holes ) : void
WriteChunkInfo ( BinaryWriter writer, ADTChunk chunk ) : void
WriteChunkModelRefs ( BinaryWriter writer, ICollection doodadIds ) : void
WriteChunkObjRefs ( BinaryWriter writer, List objectIds ) : void
WriteM2Defs ( BinaryWriter writer, IEnumerable defs ) : void
WriteQuadTree ( BinaryWriter writer, QuadTree tree ) : void
WriteWMODefs ( BinaryWriter writer, ICollection defs ) : void
WriteWaterHeights ( BinaryWriter writer, float heights ) : void
WriteWaterRenderBits ( BinaryWriter writer, bool render ) : void

Method Details

ExportMapTiles() public static method

Writes all height maps to the default MapDir
public static ExportMapTiles ( WDT wdt ) : void
wdt TerrainDisplay.MPQ.WDT.WDT
return void

ExtractMapTiles() public static method

public static ExtractMapTiles ( WDT wdt ) : ].ADT[
wdt TerrainDisplay.MPQ.WDT.WDT
return ].ADT[

ExtractWMOOnly() public static method

public static ExtractWMOOnly ( WDT wdt ) : ADT
wdt TerrainDisplay.MPQ.WDT.WDT
return ADT

Prepare() public static method

public static Prepare ( ) : void
return void

WriteTileInfo() public static method

public static WriteTileInfo ( FileStream file, ADT adt ) : void
file FileStream
adt ADT
return void

Property Details

LoadedM2Ids public_oe static_oe property

public static HashSet LoadedM2Ids
return HashSet

LoadedWmoIds public_oe static_oe property

public static HashSet LoadedWmoIds
return HashSet

ModelsToIgnore public_oe static_oe property

public static HashSet ModelsToIgnore
return HashSet

TerrainInfo public_oe static_oe property

public static ADT[,] TerrainInfo
return ].ADT[