AssetManager

php\gdx\assets\AssetManager

Methods


__construct($resolver)
Параметры:
  • $resolvercallable - (optional) - function($fileName): FileHandle
get($fileName)
Параметры:
  • $fileNamestring
Результат:

php\gdx\graphics\Texture, php\gdx\graphics\Pixmap, php\gdx\audio\Music, php\gdx\audio\Sound

loadTexture($fileName)
Параметры:
  • $fileNamestring
loadPixmap($fileName)
Параметры:
  • $fileNamestring
loadMusic($fileName)
Параметры:
  • $fileNamestring
loadSound($fileName)
Параметры:
  • $fileNamestring
unload($fileName)
Параметры:
  • $fileNamestring
isLoaded($fileName)
Параметры:
  • $fileNamestring
containsAsset($asset)
Параметры:
  • $assetobject, mixed
getAssetFileName($asset)
Параметры:
  • $assetobject, mixed
disposeDependencies($fileName)
Параметры:
  • $fileNamestring
update($millis)
Параметры:
  • $millisint - (optional)
finishLoading()
getLoadedAssets()
Результат:int
getQueuedAssets()
Результат:int
getProgress()
Результат:float
dispose()
clear()
getReferenceCount($fileName)
Параметры:
  • $fileNamestring
Результат:

int

setReferenceCount($fileName, $refCount)
Параметры:
  • $fileNamestring
  • $refCountint
getDiagnostics()
Результат:string