Drag[en]gine Script Module DragonScript
1.23
|
Cached vegetation. More...
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... | |
Cached vegetation.
Manages prop fields using vegetation cache files created by the IGDE World Editor. This is a native class.
void Dragengine.Scenery.CachedVegetation.addSector | ( | Point | coordinates, |
String | cacheFile | ||
) |
Add sector using cache file.
void Dragengine.Scenery.CachedVegetation.hasSector | ( | Point | coordinates | ) |
Sector with coordinates exists.
CachedVegetation Dragengine.Scenery.CachedVegetation.new | ( | float | sectorDimension, |
int | propfieldCellCount | ||
) |
Create cached vegetation object.
Creates prop fields.
EInvalidParam | sectorDimension is less than 1. |
EInvalidParam | propfieldCellCount is less than 1, |
void Dragengine.Scenery.CachedVegetation.removeAllSectors | ( | ) |
Remove all sectors.
void Dragengine.Scenery.CachedVegetation.removeSector | ( | Point | coordinates | ) |
Remove sector.
EInvalidParam | No sector exists with coordinates. |
void Dragengine.Scenery.CachedVegetation.setCollisionFilter | ( | CollisionFilter | collisionFilter | ) |
Set collision filter for all prop fields.
void Dragengine.Scenery.CachedVegetation.setWorld | ( | World | world | ) |
Set world or null to clear.