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 class
static class
static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Releases all resources of this object.com.badlogic.gdx.graphics.Color
getFont
(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.Disposable
Releases all resources of this object.- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
-