Skip to main content

PlayerPostboxStorageFileFormat

A class in Root.Township, the global namespace.

Server: file format for one player's postbox storage: a list of saved object versions, in the same layout as chunk saves.

Constructors​

MemberWhat it is
PlayerPostboxStorageFileFormat()Creates a PlayerPostboxStorageFileFormat with default values.

Fields​

MemberWhat it is
List<ChunkSaveFormat.Version> VersionsThe saved object versions held for the player.
1 private and internal field
MemberWhat it is
private static Logger loggerNLog logger for the class.

Methods​

MemberWhat it is
override IAltaFileFormat Clone()Makes a copy with new version lists holding the same saved objects.
override void ReadFrom(FileInfo info, Stream stream)Loads the versions from a file, skipping empty ones. A file of one byte or less loads as empty.
override void WriteTo(Stream stream, CancellationToken token)Writes the versions to a stream. Writes nothing if there are none.

Used in​

Members of other types that take, return or hold a PlayerPostboxStorageFileFormat: