From 0519f5e216bebdc9ea3ebe75d053dac99e9e1d98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 22 Nov 2018 16:16:50 +0100 Subject: Assets : support Sound --- core/src/ch/asynk/gdx/boardgame/Assets.java | 6 ++++++ 1 file changed, 6 insertions(+) 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); + } } -- cgit v1.1-2-g2b99