mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-02 18:17:09 +02:00
There's enough various changes in here that this is worth committing already.
37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
using System;
|
|
using Robust.Client.Interfaces.ResourceManagement;
|
|
using Robust.Shared.Utility;
|
|
|
|
namespace Robust.Client.ResourceManagement
|
|
{
|
|
/// <summary>
|
|
/// Base resource for the cache.
|
|
/// </summary>
|
|
public abstract class BaseResource : IDisposable
|
|
{
|
|
/// <summary>
|
|
/// Fallback resource path if this one does not exist.
|
|
/// </summary>
|
|
public virtual ResourcePath Fallback => null;
|
|
|
|
/// <summary>
|
|
/// Disposes this resource.
|
|
/// </summary>
|
|
public virtual void Dispose()
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Deserializes the resource from the VFS.
|
|
/// </summary>
|
|
/// <param name="cache">ResourceCache this resource is being loaded into.</param>
|
|
/// <param name="path">Path of the resource requested on the VFS.</param>
|
|
public abstract void Load(IResourceCache cache, ResourcePath path);
|
|
|
|
public virtual void Reload(IResourceCache cache, ResourcePath path)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|