Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.TemporaryDecal Class Reference

Temporary decal attached to a component. More...

Inheritance diagram for Dragengine.Scenery.TemporaryDecal:

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.

Detailed Description

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.

Member Function Documentation

◆ decreaseTimeToLive()

void Dragengine.Scenery.TemporaryDecal.decreaseTimeToLive ( float amount)

Decrease time to live.

References decreaseTimeToLive(), getDecal(), getTimeToLive(), and setTimeToLive().

Referenced by decreaseTimeToLive().

◆ getDecal()

Decal Dragengine.Scenery.TemporaryDecal.getDecal ( )

Decal.

Referenced by decreaseTimeToLive().

◆ getParentComponent()

Component Dragengine.Scenery.TemporaryDecal.getParentComponent ( )

Parent component or null.

Referenced by getTimeToLive().

◆ getTimeToLive()

float Dragengine.Scenery.TemporaryDecal.getTimeToLive ( )

Time to live.

References getParentComponent().

Referenced by decreaseTimeToLive().

◆ new()

TemporaryDecal Dragengine.Scenery.TemporaryDecal.new ( Decal decal,
Component component )

Create temporary decal.

References new().

Referenced by new().

◆ setTimeToLive()

void Dragengine.Scenery.TemporaryDecal.setTimeToLive ( float ttl)

Set time to live.

Referenced by decreaseTimeToLive().


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