A class containing informations about a loading process. Made specifically for nb.fs.FileSystem.

Available since

0.1.0

.

Constructor

@:value({ nTotal : 0 })new(nTotal:Int = 0)

Creates a nb.fs.NFileSystem.Progress instance.

Parameters:

nTotal

Total number of resources that are to be loaded.

Variables

@:value("")read onlyjustLoaded:String = ""

A string representing a resource that was just loaded.

@:value("")read onlyloading:String = ""

A string representing a resource that is loading.

@:value(0)read onlyloadingPct:Float = 0

From 0 to 1, how much of a resource is loaded.

@:value(0)read onlynLoaded:Int = 0

Total number of resources loaded.

@:value(0)read onlynTotal:Int = 0

Total number of resources that are to be loaded.

@:value(0)read onlytotalPct:Float = 0

From 0 to 1, how much of all resources are loaded.

Methods

loaded(name:String):Void

Specify that a resource was just loaded.

Parameters:

name

A string representing the resource.