ICacheable
An interface in Root.Township, Alta.Static.
Data that can be saved to and loaded from a versioned cache file, such as forest and river generation. Used by CacheManager.
- Listed in World, chunks and saving
- Derived types
ForestGeneration,RiverGeneration,InstructionSet,TerrainAccess
Properties
| Member | What it is |
|---|---|
uint Version { get; } | Current data version, written at the start of the cache file. |
Methods
| Member | What it is |
|---|---|
Task SerializeAsync(uint version, Stream stream) | Reads or writes the data on the stream. When reading, version is the version stored in the file. |
Used in
Members of other types that take, return or hold a ICacheable: