|
Drag[en]gine Script Module DragonScript 1.35
|
Cached vegetation. More...
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. | |
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 ) |
| void Dragengine.Scenery.CachedVegetation.hasSector | ( | Point | coordinates | ) |
| CachedVegetation Dragengine.Scenery.CachedVegetation.new | ( | float | sectorDimension, |
| int | propfieldCellCount ) |
| void Dragengine.Scenery.CachedVegetation.removeAllSectors | ( | ) |
| void Dragengine.Scenery.CachedVegetation.removeSector | ( | Point | coordinates | ) |
Remove sector.
| EInvalidParam | No sector exists with coordinates. |
Referenced by removeAllSectors().
| void Dragengine.Scenery.CachedVegetation.setCollisionFilter | ( | CollisionFilter | collisionFilter | ) |
Set collision filter for all prop fields.
References setCollisionFilter().
Referenced by setCollisionFilter().
| void Dragengine.Scenery.CachedVegetation.setWorld | ( | World | world | ) |
Set world or null to clear.
References removeAllSectors(), and setWorld().
Referenced by setWorld().