Skip to main content

IAltaFileFormat

An abstract class in Alta.IO, Alta.Utilities.

Base for a file format the game can read from and write to a stream, such as a save file's contents. Disposable.

Constructors​

MemberWhat it is
protected IAltaFileFormat()Creates an IAltaFileFormat with default values.

Properties​

MemberWhat it is
bool IsDisposed { get; private set; }Whether Dispose has been called.

Methods​

MemberWhat it is
abstract IAltaFileFormat Clone()Returns a copy of the file's contents.
virtual void Dispose()Marks the object disposed.
abstract void ReadFrom(FileInfo info, Stream stream)Reads the contents from a stream, given the file it came from.
abstract void WriteTo(Stream stream, CancellationToken token)Writes the contents to a stream.

Used in​

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