using System; using System.Threading; using Robust.Shared.IoC; 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 ResPath? Fallback => null; /// /// Disposes this resource. /// public virtual void Dispose() { } /// /// Deserializes the resource from the VFS. /// public abstract void Load(IDependencyCollection dependencies, ResPath path); public virtual void Reload(IDependencyCollection dependencies, ResPath path, CancellationToken ct = default) { } }