Package com.prineside.tdi2.managers
Class AssetManager
java.lang.Object
com.prineside.tdi2.Manager.ManagerAdapter
com.prineside.tdi2.managers.AssetManager
- All Implemented Interfaces:
 Disposable,Manager
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final classstatic classNested classes/interfaces inherited from interface com.prineside.tdi2.Manager
Manager.ManagerAdapter, Manager.ManagerWithListeners<T> - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddRegionCharsToFont(BitmapFont font, int fontResolution) Used by ResourcePack onlystatic voidvoiddispose()Releases all resources of this object.getDebugFont(boolean markupEnabled) getDrawable(String regionAlias) Возвращает всегда один и тот же Drawable с указанным алиасом региона.getFont(int size) floatgetFontScaleMultiplier(int fontSize) Depens only on "lage fonts" settinggetFontWithMarkup(int size, boolean hasMarkup) getLabelStyle(int fontSize) getLargeDebugFont(boolean markupEnabled) voidgetModel(String fileName, ObjectConsumer<Model> onReady) getParticleEffectPool(String particleName) getParticleEffectPoolWithTemplate(String particleName, ParticleEffect template) May return Quad.getNoQuad() if not foundgetQuadOrNull(String alias) voidgetSceneModel(ObjectConsumer<Model> onReady) getScrollPaneStyle(float width) getSelectBoxStyle(BitmapFont font, boolean variantA) getSound(StaticSoundType soundType) Получает трек из последнего набора ресурсов, в котором все они естьgetTextFieldStyle(int fontSize) getTextFieldStyleWithFontAndVariant(BitmapFont font, boolean variantA) getTextFieldStyleWithVariant(int fontSize, boolean variantA) getTextureRegion(String regionAlias) getTextureRegions(String regionAlias) getTextureRegionSetThrowing(String regionAlias, boolean throwExceptionOnMissing) loadWebTexture(String src) loadWebTexture(String src, boolean ignoreCache) static FileHandlelocalOrInternalFile(String path) voidsetup()Called when all manager objects are already created and can be accessedvoidtest()Called after all managers are set up.Methods inherited from class com.prineside.tdi2.Manager.ManagerAdapter
postRender, preRender 
- 
Field Details
- 
BLANK_REGION_NAME
- See Also:
 
 - 
normalMaterial
 - 
blendedMaterial
 
 - 
 - 
Constructor Details
- 
AssetManager
public AssetManager() 
 - 
 - 
Method Details
- 
getParticleEffectPool
 - 
getParticleEffectPoolWithTemplate
public ParticleEffectPool getParticleEffectPoolWithTemplate(String particleName, ParticleEffect template)  - 
clearCacheDir
public static void clearCacheDir() - 
localOrInternalFile
 - 
loadWebTexture
 - 
loadWebTexture
 - 
getModel
 - 
getSceneModelIfLoaded
 - 
getSceneModel
 - 
replaceRegionAliasesWithChars
- Returns:
 - одинаковый инстанс SB или str, если не заменено ничего - не использовать его напрямую!
 
 - 
addRegionCharsToFont
Used by ResourcePack only - 
setup
public void setup()Description copied from interface:ManagerCalled when all manager objects are already created and can be accessed- Specified by:
 setupin interfaceManager- Overrides:
 setupin classManager.ManagerAdapter
 - 
getFontScaleMultiplier
public float getFontScaleMultiplier(int fontSize) Depens only on "lage fonts" setting - 
getColor
 - 
getQuad
May return Quad.getNoQuad() if not found - 
getQuadOrNull
 - 
getTextureRegion
 - 
getTextureRegionSetThrowing
public ResourcePack.AtlasTextureRegion getTextureRegionSetThrowing(String regionAlias, boolean throwExceptionOnMissing)  - 
getTextureRegions
 - 
getLabelStyle
 - 
createDefaultWindowStyle
 - 
getTextFieldStyle
 - 
getTextFieldStyleWithVariant
 - 
getTextFieldStyleWithFontAndVariant
public TextField.TextFieldStyle getTextFieldStyleWithFontAndVariant(BitmapFont font, boolean variantA)  - 
getSelectBoxStyle
 - 
getDebugLabelStyle
 - 
getSmallDebugLabelStyle
 - 
getScrollPaneStyle
 - 
getDrawable
Возвращает всегда один и тот же Drawable с указанным алиасом региона. - 
getOverlayBackground
 - 
getBlankWhiteTextureRegion
 - 
getDamageNumbersOverTimeFont
 - 
getDamageNumbersEspeciallyEffectiveFont
 - 
getDamageNumbersFont
 - 
getDebugFont
 - 
getLargeDebugFont
 - 
getSmallDebugFont
 - 
getSmallDebugFontNoMarkup
 - 
getBannerTexture
 - 
getFont
 - 
getFontWithMarkup
 - 
getSound
Получает трек из последнего набора ресурсов, в котором все они есть - 
getMenuXmSoundTrack
 - 
test
public void test()Description copied from interface:ManagerCalled after all managers are set up. Tests managers early to make sure they can work as intended.- Specified by:
 testin interfaceManager- Overrides:
 testin classManager.ManagerAdapter
 - 
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.DisposableReleases all resources of this object.- Specified by:
 disposein interfaceDisposable- Overrides:
 disposein classManager.ManagerAdapter
 
 -