Small ResourceManager refactor, add ResourceSaver<T>.
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace DaggerFramework
|
||||
{
|
||||
public abstract class Resource : IDisposable
|
||||
{
|
||||
public string? Path { get => _path; set => _path = value; }
|
||||
|
||||
[JsonIgnore]
|
||||
public byte[]? Buffer { get => _buffer; set => _buffer = value; }
|
||||
|
||||
[JsonIgnore]
|
||||
public long BufferSize { get; set; }
|
||||
|
||||
public Resource(string path, byte[] buffer)
|
||||
|
||||
Reference in New Issue
Block a user