Skip to main content

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.

Properties​

MemberWhat it is
uint Version { get; }Current data version, written at the start of the cache file.

Methods​

MemberWhat 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: