SoundInstance changes, small updates in Sound and Texture2d loaders.

This commit is contained in:
2024-08-22 22:07:27 +02:00
parent 912de8a5ef
commit 06814a678e
8 changed files with 39 additions and 17 deletions

View File

@@ -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()