Files
RobustToolbox/Robust.Client/ResourceManagement/BaseResource.cs
T
Pieter-Jan Briers 0169312c0b Not actually functional FOV system.
There's enough various changes in here that this is worth committing already.
2020-02-05 00:10:58 +01:00

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)
{
}
}
}