ResourceManager!
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
using StbVorbisSharp;
|
||||
|
||||
namespace DaggerFramework
|
||||
namespace DaggerFramework.Resources
|
||||
{
|
||||
public class SoundLoader : ResourceLoader<Sound>
|
||||
public class SoundLoader : IResourceLoader
|
||||
{
|
||||
public override Sound Load(string path)
|
||||
public IEnumerable<string> SupportedExtensions => new string[]
|
||||
{
|
||||
"ogg"
|
||||
};
|
||||
|
||||
public Type ResourceType => typeof(Sound);
|
||||
|
||||
public Resource Load(string path)
|
||||
{
|
||||
Vorbis vorbis;
|
||||
Sound result;
|
||||
|
||||
Reference in New Issue
Block a user