summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/gdx/boardgame/Assets.java
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-11-22 16:16:50 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2018-11-22 16:16:50 +0100
commit0519f5e216bebdc9ea3ebe75d053dac99e9e1d98 (patch)
tree31003dba763259c7ced2e778b4ee76dcb5f568a6 /core/src/ch/asynk/gdx/boardgame/Assets.java
parent5ecd8d53992ca86a869aa5c7936ae6c4e4867158 (diff)
downloadgdx-boardgame-0519f5e216bebdc9ea3ebe75d053dac99e9e1d98.zip
gdx-boardgame-0519f5e216bebdc9ea3ebe75d053dac99e9e1d98.tar.gz
Assets : support Sound
Diffstat (limited to 'core/src/ch/asynk/gdx/boardgame/Assets.java')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/Assets.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/Assets.java b/core/src/ch/asynk/gdx/boardgame/Assets.java
index 3402430..d065d76 100644
--- a/core/src/ch/asynk/gdx/boardgame/Assets.java
+++ b/core/src/ch/asynk/gdx/boardgame/Assets.java
@@ -1,5 +1,6 @@
package ch.asynk.gdx.boardgame;
+import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
@@ -27,4 +28,9 @@ public class Assets extends AssetManager
{
return get(assetName, BitmapFont.class);
}
+
+ public Sound getSound(String assetName)
+ {
+ return get(assetName, Sound.class);
+ }
}