|
Drag[en]gine Script Module DragonScript 1.32.1
|
Temporary decal attached to a component. More...
Public Member Functions | |
| void | decreaseTimeToLive (float amount) |
| Decrease time to live. | |
| Decal | getDecal () |
| Decal. | |
| Component | getParentComponent () |
| Parent component or null. | |
| float | getTimeToLive () |
| Time to live. | |
| TemporaryDecal | new (Decal decal, Component component) |
| Create temporary decal. | |
| void | setTimeToLive (float ttl) |
| Set time to live. | |
Temporary decal attached to a component.
Typical temporary decals are weapon damages. To avoid hogging memory and loosing speed these temporary decals only stay alive for a given amount of time before they are removed. Since most of the time temporary decals are based on their living time a timer parameter is already included. The default interpretation of this parameter is to indicate the time to live in seconds.
| void Dragengine.Scenery.TemporaryDecal.decreaseTimeToLive | ( | float | amount | ) |
Decrease time to live.
| Decal Dragengine.Scenery.TemporaryDecal.getDecal | ( | ) |
Decal.
| Component Dragengine.Scenery.TemporaryDecal.getParentComponent | ( | ) |
Parent component or null.
| float Dragengine.Scenery.TemporaryDecal.getTimeToLive | ( | ) |
Time to live.
| TemporaryDecal Dragengine.Scenery.TemporaryDecal.new | ( | Decal | decal, |
| Component | component | ||
| ) |
Create temporary decal.
| void Dragengine.Scenery.TemporaryDecal.setTimeToLive | ( | float | ttl | ) |
Set time to live.