ResourceManager!

This commit is contained in:
2023-06-18 22:16:28 +02:00
parent c0bdb3d4a6
commit 2fb5125ece
9 changed files with 215 additions and 22 deletions

View File

@@ -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;