Small ResourceManager refactor, add ResourceSaver<T>.

This commit is contained in:
2024-01-21 20:24:53 +01:00
parent cfec5a59b1
commit 62e0e013f1
16 changed files with 215 additions and 54 deletions

View File

@@ -2,16 +2,14 @@ using StbVorbisSharp;
namespace DaggerFramework.Resources
{
public class SoundLoader : IResourceLoader
public class SoundLoader : IResourceLoader<Sound>
{
public IEnumerable<string> SupportedExtensions => new string[]
{
"ogg"
};
public Type ResourceType => typeof(Sound);
public Resource Load(string path)
public Sound Load(string path)
{
Vorbis vorbis;
Sound result;