using System; using System.Threading; using Robust.Shared.Utility; namespace Robust.Client.ResourceManagement { /// /// Base resource for the cache. /// public abstract class BaseResource : IDisposable { /// /// Fallback resource path if this one does not exist. /// public virtual ResourcePath? Fallback => null; /// /// Disposes this resource. /// public virtual void Dispose() { } /// /// Deserializes the resource from the VFS. /// /// ResourceCache this resource is being loaded into. /// Path of the resource requested on the VFS. public abstract void Load(IResourceCache cache, ResourcePath path); public virtual void Reload(IResourceCache cache, ResourcePath path, CancellationToken ct = default) { } } }