Skip to main content
Skip to main content

Foliage

addFoliageTypeFromXML

Description

Load a new foliage type from an XML file, creating a new multilayer if a new density map is used

Definition

addFoliageTypeFromXML(entityId terrainNode, entityId foliageDataPlaneId, string name, string xmlFilename)

Arguments

entityIdterrainNode
entityIdfoliageDataPlaneIdid for density map to use for the foliage layer, or a dataplane that shares this density map
stringnamename of new layer
stringxmlFilenameXML filename containing the layer definition

Return Values

entityIddensityMapTypeIdthe type ID the density map will use for this layer, or 0 if the call failed