Interface IResourceCache
- Namespace
- DotTiled.Serialization
- Assembly
- DotTiled.dll
Interface for a cache that stores Tiled resources for faster retrieval and reuse.
public interface IResourceCache
Methods
GetTemplate(string)
Retrieves a template from the cache with the given path
.
Optional<Template> GetTemplate(string path)
Parameters
path
stringThe path to the template file.
Returns
GetTileset(string)
Retrieves a tileset from the cache with the given path
.
Optional<Tileset> GetTileset(string path)
Parameters
path
stringThe path to the tileset file.
Returns
InsertTemplate(string, Template)
Inserts a template into the cache with the given path
.
void InsertTemplate(string path, Template template)
Parameters
InsertTileset(string, Tileset)
Inserts a tileset into the cache with the given path
.
void InsertTileset(string path, Tileset tileset)