Small ResourceManager refactor, add ResourceSaver<T>.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user