Package com.prineside.tdi2
Class ResourcePack
java.lang.Object
com.prineside.tdi2.ResourcePack
- All Implemented Interfaces:
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.getFont(int size) getFontWithMarkup(int size, boolean hasMarkup) getSound(StaticSoundType trackType) getTextureRegion(String regionAlias) getTextureRegionSet(String regionAlias) Returns an array of textures with indices (indexed textures have a digital suffix in them)booleanstatic voidpreloadQuadRegionSetRecursive(com.fasterxml.jackson.databind.JsonNode o, String prefix, String resourcePackName, ObjectMap<String, Quad> out, AssetProvider<TextureRegion> regionProvider)
-
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 = internal file, false - local file- Throws:
ResourcePack.ResourcePackLoadingException
-
-
Method Details
-
preloadQuadRegionSetRecursive
public static void preloadQuadRegionSetRecursive(com.fasterxml.jackson.databind.JsonNode o, String prefix, String resourcePackName, ObjectMap<String, Quad> out, AssetProvider<TextureRegion> regionProvider) -
getBlankWhiteTextureRegion
-
getTextureRegion
-
getTextureRegionSet
Returns an array of textures with indices (indexed textures have a digital suffix in them) -
getTextureRegions
- Returns:
- all texture regions of this pack
-
getTextureRegionSets
-
getLoadedAtlases
-
getColor
-
getQuad
-
getFont
-
getFontWithMarkup
-
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 interfaceDisposable
-