Drag[en]gine Script Module DragonScript  1.23
Dragengine.Preloading.PreloadCounter Class Reference

Counter for keeping track of preloading progress. More...

Inheritance diagram for Dragengine.Preloading.PreloadCounter:

Public Member Functions

void decrease ()
 Decrement counter by one. More...
 
void decreaseBy (int count)
 Decrement counter by amount. More...
 
PreloadCounter getParent ()
 Parent counter or null. More...
 
int getValue ()
 Counter value. More...
 
void increase ()
 Increment counter by one. More...
 
void increaseBy (int count)
 Increment counter by amount. More...
 
bool isNotZero ()
 Counter has not yet reach zero. More...
 
bool isZero ()
 Counter reached zero. More...
 
PreloadCounter new ()
 Create preload counter. More...
 
void reset ()
 Reset counter to 0. More...
 
void setParent (PreloadCounter counter)
 Set parent counter or null. More...
 

Detailed Description

Counter for keeping track of preloading progress.

If a parent counter is set the parent counter is decremented too each time this counter is decremented. Allows to monitor preload progress using a single parent preload counter while being still able to monitor individual progress.

Member Function Documentation

◆ decrease()

void Dragengine.Preloading.PreloadCounter.decrease ( )

Decrement counter by one.

◆ decreaseBy()

void Dragengine.Preloading.PreloadCounter.decreaseBy ( int  count)

Decrement counter by amount.

◆ getParent()

PreloadCounter Dragengine.Preloading.PreloadCounter.getParent ( )

Parent counter or null.

◆ getValue()

int Dragengine.Preloading.PreloadCounter.getValue ( )

Counter value.

◆ increase()

void Dragengine.Preloading.PreloadCounter.increase ( )

Increment counter by one.

◆ increaseBy()

void Dragengine.Preloading.PreloadCounter.increaseBy ( int  count)

Increment counter by amount.

◆ isNotZero()

bool Dragengine.Preloading.PreloadCounter.isNotZero ( )

Counter has not yet reach zero.

◆ isZero()

bool Dragengine.Preloading.PreloadCounter.isZero ( )

Counter reached zero.

◆ new()

PreloadCounter Dragengine.Preloading.PreloadCounter.new ( )

Create preload counter.

◆ reset()

void Dragengine.Preloading.PreloadCounter.reset ( )

Reset counter to 0.

◆ setParent()

void Dragengine.Preloading.PreloadCounter.setParent ( PreloadCounter  counter)

Set parent counter or null.


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