Drag[en]gine Script Module DragonScript  1.23
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. More...
 
Management
void setCollisionFilter (CollisionFilter collisionFilter)
 Set collision filter for all prop fields. More...
 
void hasSector (Point coordinates)
 Sector with coordinates exists. More...
 
void addSector (Point coordinates, String cacheFile)
 Add sector using cache file. More...
 
void removeSector (Point coordinates)
 Remove sector. More...
 
void removeAllSectors ()
 Remove all sectors. More...
 
void setWorld (World world)
 Set world or null to clear. More...
 

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.

◆ hasSector()

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

Sector with coordinates exists.

◆ 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,

◆ removeAllSectors()

void Dragengine.Scenery.CachedVegetation.removeAllSectors ( )

Remove all sectors.

◆ removeSector()

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

Remove sector.

Exceptions
EInvalidParamNo sector exists with coordinates.

◆ setCollisionFilter()

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

Set collision filter for all prop fields.

◆ setWorld()

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

Set world or null to clear.


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