mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-03 10:37:05 +02:00
* Rewrite Integration testing, add support for the client. * Rewrite AssemblyLoader to not be static. * Adds ability to post messages into thread.
41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using Robust.Client.ResourceManagement;
|
|
using Robust.Shared.Interfaces.Resources;
|
|
using Robust.Shared.Utility;
|
|
|
|
namespace Robust.Client.Interfaces.ResourceManagement
|
|
{
|
|
public interface IResourceCache : IResourceManager
|
|
{
|
|
T GetResource<T>(string path, bool useFallback = true)
|
|
where T : BaseResource, new();
|
|
|
|
T GetResource<T>(ResourcePath path, bool useFallback = true)
|
|
where T : BaseResource, new();
|
|
|
|
bool TryGetResource<T>(string path, out T resource)
|
|
where T : BaseResource, new();
|
|
|
|
bool TryGetResource<T>(ResourcePath path, out T resource)
|
|
where T : BaseResource, new();
|
|
|
|
void ReloadResource<T>(string path)
|
|
where T : BaseResource, new();
|
|
|
|
void ReloadResource<T>(ResourcePath path)
|
|
where T : BaseResource, new();
|
|
|
|
void CacheResource<T>(string path, T resource)
|
|
where T : BaseResource, new();
|
|
|
|
void CacheResource<T>(ResourcePath path, T resource)
|
|
where T : BaseResource, new();
|
|
|
|
T GetFallback<T>()
|
|
where T : BaseResource, new();
|
|
}
|
|
|
|
internal interface IResourceCacheInternal : IResourceCache, IResourceManagerInternal
|
|
{
|
|
}
|
|
}
|