Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
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.
void decreaseBy (int count)
 Decrement counter by amount.
PreloadCounter getParent ()
 Parent counter or null.
int getValue ()
 Counter value.
void increase ()
 Increment counter by one.
void increaseBy (int count)
 Increment counter by amount.
bool isNotZero ()
 Counter has not yet reach zero.
bool isZero ()
 Counter reached zero.
PreloadCounter new ()
 Create preload counter.
void reset ()
 Reset counter to 0.
void setParent (PreloadCounter counter)
 Set parent counter or null.

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.

References isNotZero().

Referenced by reset().

◆ decreaseBy()

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

Decrement counter by amount.

Referenced by reset().

◆ getParent()

PreloadCounter Dragengine.Preloading.PreloadCounter.getParent ( )

Parent counter or null.

References getParent().

Referenced by getParent().

◆ getValue()

int Dragengine.Preloading.PreloadCounter.getValue ( )

Counter value.

Referenced by isNotZero().

◆ increase()

void Dragengine.Preloading.PreloadCounter.increase ( )

Increment counter by one.

References isZero().

Referenced by reset().

◆ increaseBy()

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

Increment counter by amount.

Referenced by reset().

◆ isNotZero()

bool Dragengine.Preloading.PreloadCounter.isNotZero ( )

Counter has not yet reach zero.

References getValue().

Referenced by decrease().

◆ isZero()

bool Dragengine.Preloading.PreloadCounter.isZero ( )

Counter reached zero.

Referenced by increase().

◆ new()

PreloadCounter Dragengine.Preloading.PreloadCounter.new ( )

Create preload counter.

References new().

Referenced by new(), and reset().

◆ reset()

void Dragengine.Preloading.PreloadCounter.reset ( )

Reset counter to 0.

References decrease(), decreaseBy(), increase(), increaseBy(), new(), and reset().

Referenced by reset().

◆ setParent()

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

Set parent counter or null.

References setParent().

Referenced by setParent().


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