|
Drag[en]gine Script Module DragonScript 1.32.1
|
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 | ||
| ) |
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.