Package com.prineside.tdi2
Class ResourcePack
java.lang.Object
com.prineside.tdi2.ResourcePack
- All Implemented Interfaces:
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.getFont
(int size) getFont
(int size, boolean hasMarkup) getSound
(StaticSoundType trackType) getTextureRegion
(String regionAlias) getTextureRegions
(String regionAlias) Получить массив текстур с индексамиboolean
static void
preloadQuadRegionSetRecursive
(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, будет загружено из files.internal, если false - files.local- 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
-
getTextureRegions
Получить массив текстур с индексами -
getTextureRegions
- Returns:
- все регионы пака
-
getTextureRegionSets
-
getLoadedAtlases
-
getColor
-
getQuad
-
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 interfaceDisposable
-