Package com.prineside.tdi2
Class ResourcePack
java.lang.Object
com.prineside.tdi2.ResourcePack
- All Implemented Interfaces:
 com.badlogic.gdx.utils.Disposable
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Releases all resources of this object.com.badlogic.gdx.graphics.ColorgetFont(int size) getFont(int size, boolean hasMarkup) com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.g2d.TextureAtlas>getSound(StaticSoundType trackType) getTextureRegion(String regionAlias) com.badlogic.gdx.utils.ObjectMap<String,ResourcePack.AtlasTextureRegion> com.badlogic.gdx.utils.Array<ResourcePack.AtlasTextureRegion>getTextureRegions(String regionAlias) Получить массив текстур с индексамиcom.badlogic.gdx.utils.ObjectMap<String,com.badlogic.gdx.utils.Array<ResourcePack.AtlasTextureRegion>> boolean 
- 
Field Details
- 
RESOURCE_PACKS_DIR
- See Also:
 
 - 
name
 - 
version
public int version - 
fontResolution
public float fontResolution 
 - 
 - 
Constructor Details
- 
ResourcePack
public ResourcePack(String packName, boolean loadFromClasspath) throws ResourcePack.ResourcePackLoadingException - Parameters:
 loadFromClasspath- если true, будет загружено из files.internal, если false - files.local- Throws:
 ResourcePack.ResourcePackLoadingException
 
 - 
 - 
Method Details
- 
getBlankWhiteTextureRegion
 - 
getTextureRegion
 - 
getTextureRegions
public com.badlogic.gdx.utils.Array<ResourcePack.AtlasTextureRegion> getTextureRegions(String regionAlias) Получить массив текстур с индексами - 
getTextureRegions
- Returns:
 - все регионы пака
 
 - 
getTextureRegionSets
public com.badlogic.gdx.utils.ObjectMap<String,com.badlogic.gdx.utils.Array<ResourcePack.AtlasTextureRegion>> getTextureRegionSets() - 
getLoadedAtlases
public com.badlogic.gdx.utils.Array<com.badlogic.gdx.graphics.g2d.TextureAtlas> getLoadedAtlases() - 
getColor
 - 
getFont
 - 
getFont
 - 
hasSounds
public boolean hasSounds() - 
getSound
 - 
getMenuXmSoundTrack
 - 
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.DisposableReleases all resources of this object.- Specified by:
 disposein interfacecom.badlogic.gdx.utils.Disposable
 
 -