Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.CachedVegetation Class Reference

Cached vegetation. More...

Inheritance diagram for Dragengine.Scenery.CachedVegetation:

Public Member Functions

Constructors
CachedVegetation new (float sectorDimension, int propfieldCellCount)
 Create cached vegetation object.
Management
void setCollisionFilter (CollisionFilter collisionFilter)
 Set collision filter for all prop fields.
void hasSector (Point coordinates)
 Sector with coordinates exists.
void addSector (Point coordinates, String cacheFile)
 Add sector using cache file.
void removeSector (Point coordinates)
 Remove sector.
void removeAllSectors ()
 Remove all sectors.
void setWorld (World world)
 Set world or null to clear.

Detailed Description

Cached vegetation.

Manages prop fields using vegetation cache files created by the IGDE World Editor. This is a native class.

Member Function Documentation

◆ addSector()

void Dragengine.Scenery.CachedVegetation.addSector ( Point coordinates,
String cacheFile )

Add sector using cache file.

References addSector().

Referenced by addSector().

◆ hasSector()

void Dragengine.Scenery.CachedVegetation.hasSector ( Point coordinates)

Sector with coordinates exists.

References hasSector().

Referenced by hasSector().

◆ new()

CachedVegetation Dragengine.Scenery.CachedVegetation.new ( float sectorDimension,
int propfieldCellCount )

Create cached vegetation object.

Creates prop fields.

Exceptions
EInvalidParamsectorDimension is less than 1.
EInvalidParampropfieldCellCount is less than 1,

References new().

Referenced by new().

◆ removeAllSectors()

void Dragengine.Scenery.CachedVegetation.removeAllSectors ( )

Remove all sectors.

References removeSector().

Referenced by setWorld().

◆ removeSector()

void Dragengine.Scenery.CachedVegetation.removeSector ( Point coordinates)

Remove sector.

Exceptions
EInvalidParamNo sector exists with coordinates.

Referenced by removeAllSectors().

◆ setCollisionFilter()

void Dragengine.Scenery.CachedVegetation.setCollisionFilter ( CollisionFilter collisionFilter)

Set collision filter for all prop fields.

References setCollisionFilter().

Referenced by setCollisionFilter().

◆ setWorld()

void Dragengine.Scenery.CachedVegetation.setWorld ( World world)

Set world or null to clear.

References removeAllSectors(), and setWorld().

Referenced by setWorld().


The documentation for this class was generated from the following file: