Search
Preparing search index...
The search index is not available
@akashic/akashic-engine
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"lib/main.d"
g
AssetManager
Class AssetManager
Hierarchy
AssetManager
Implements
AssetLoadHandler
Index
Constructors
constructor
Properties
_assets
_live
Absolute
Path
Table
_live
Asset
Virtual
Path
Table
_module
Main
Scripts
_ref
Counts
configuration
game
MAX_
ERROR_
COUNT
Methods
_count
Loading
Asset
_create
Asset
For
_normalize
_on
Asset
Error
_on
Asset
Load
_release
Asset
destroy
destroyed
global
Asset
Ids
request
Asset
request
Assets
retry
Load
unref
Asset
unref
Assets
Constructors
constructor
new
Asset
Manager
(
game
:
Game
, conf
?:
AssetConfigurationMap
, audioSystemConfMap
?:
AudioSystemConfigurationMap
, moduleMainScripts
?:
ModuleMainScriptsMap
)
:
AssetManager
Parameters
game:
Game
Optional
conf:
AssetConfigurationMap
Optional
audioSystemConfMap:
AudioSystemConfigurationMap
Optional
moduleMainScripts:
ModuleMainScriptsMap
Returns
AssetManager
Properties
Private
_assets
_assets
:
object
Type declaration
[
key:
string
]:
Asset
Private
_live
Absolute
Path
Table
_live
Absolute
Path
Table
:
object
Type declaration
[
path:
string
]:
string
Private
_live
Asset
Virtual
Path
Table
_live
Asset
Virtual
Path
Table
:
object
Type declaration
[
key:
string
]:
Asset
Private
_module
Main
Scripts
_module
Main
Scripts
:
ModuleMainScriptsMap
Private
_ref
Counts
_ref
Counts
:
object
Type declaration
[
key:
string
]:
number
configuration
configuration
:
object
Type declaration
[
key:
string
]:
any
game
game
:
Game
Static
MAX_
ERROR_
COUNT
MAX_
ERROR_
COUNT
:
number
Methods
Private
_count
Loading
Asset
_count
Loading
Asset
(
)
:
number
Returns
number
Private
_create
Asset
For
_create
Asset
For
(
idOrConf
:
string
|
DynamicAssetConfiguration
)
:
Asset
Parameters
idOrConf:
string
|
DynamicAssetConfiguration
Returns
Asset
_normalize
_normalize
(
configuration
:
any
, audioSystemConfMap
:
AudioSystemConfigurationMap
)
:
any
Parameters
configuration:
any
audioSystemConfMap:
AudioSystemConfigurationMap
Returns
any
Private
_on
Asset
Error
_on
Asset
Error
(
asset
:
Asset
, error
:
AssetLoadError
)
:
void
Parameters
asset:
Asset
error:
AssetLoadError
Returns
void
Private
_on
Asset
Load
_on
Asset
Load
(
asset
:
Asset
)
:
void
Parameters
asset:
Asset
Returns
void
_release
Asset
_release
Asset
(
assetId
:
string
)
:
void
Parameters
assetId:
string
Returns
void
destroy
destroy
(
)
:
void
Returns
void
destroyed
destroyed
(
)
:
boolean
Returns
boolean
global
Asset
Ids
global
Asset
Ids
(
)
:
string
[]
Returns
string
[]
request
Asset
request
Asset
(
assetIdOrConf
:
string
|
DynamicAssetConfiguration
, handler
:
AssetManagerLoadHandler
)
:
boolean
Parameters
assetIdOrConf:
string
|
DynamicAssetConfiguration
handler:
AssetManagerLoadHandler
Returns
boolean
request
Assets
request
Assets
(
assetIdOrConfs
:
(
string
|
DynamicAssetConfiguration
)
[]
, handler
:
AssetManagerLoadHandler
)
:
number
Parameters
assetIdOrConfs:
(
string
|
DynamicAssetConfiguration
)
[]
handler:
AssetManagerLoadHandler
Returns
number
retry
Load
retry
Load
(
asset
:
Asset
)
:
void
Parameters
asset:
Asset
Returns
void
unref
Asset
unref
Asset
(
assetOrId
:
string
|
Asset
)
:
void
Parameters
assetOrId:
string
|
Asset
Returns
void
Private
unref
Assets
unref
Assets
(
assetOrIds
:
(
string
|
Asset
)
[]
)
:
void
Parameters
assetOrIds:
(
string
|
Asset
)
[]
Returns
void
Globals
Asset
Manager
constructor
_assets
_live
Absolute
Path
Table
_live
Asset
Virtual
Path
Table
_module
Main
Scripts
_ref
Counts
configuration
game
MAX_
ERROR_
COUNT
_count
Loading
Asset
_create
Asset
For
_normalize
_on
Asset
Error
_on
Asset
Load
_release
Asset
destroy
destroyed
global
Asset
Ids
request
Asset
request
Assets
retry
Load
unref
Asset
unref
Assets
Generated using
TypeDoc