SoundInstance changes, small updates in Sound and Texture2d loaders.
This commit is contained in:
@@ -4,6 +4,8 @@ namespace Voile
|
||||
{
|
||||
public abstract class Resource : IDisposable
|
||||
{
|
||||
public Guid Guid { get; set; } = Guid.NewGuid();
|
||||
|
||||
public string? Path { get => _path; set => _path = value; }
|
||||
|
||||
[JsonIgnore]
|
||||
@@ -16,6 +18,8 @@ namespace Voile
|
||||
{
|
||||
_path = path;
|
||||
_buffer = buffer;
|
||||
|
||||
BufferSize = buffer.Length;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
||||
Reference in New Issue
Block a user