Class DefaultResourceCache
- Namespace
- DotTiled.Serialization
- Assembly
- DotTiled.dll
A default implementation of IResourceCache that uses an in-memory dictionary to cache resources.
public class DefaultResourceCache : IResourceCache
- Inheritance
-
DefaultResourceCache
- Implements
- Inherited Members
Methods
GetTemplate(string)
Retrieves a template from the cache with the given path
.
public 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
.
public 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
.
public void InsertTemplate(string path, Template template)
Parameters
InsertTileset(string, Tileset)
Inserts a tileset into the cache with the given path
.
public void InsertTileset(string path, Tileset tileset)