Module section

Source
Expand description

A submodule that provides the Section object, which allows the user to choose which sections should be parsed.

Structs§

Section
A section of the save file. It directly maps to a SaveFileObject and is the largest unit of data in the save file. Since Tape holds state, it must be mutable for the section to be parsable.
StackEntry 🔒
A stack entry for the section parser. It serves two very important functions. First: it stores the name it should be saved under, or ‘None’ if it should be saved in parent as if the parent was an array. Second: it stores the values that are being parsed, as if the object was simultaneously an array and a map. This is then lazily evaluated into a homogeneous object. The object internals are lazily evaluated so performance cost for homogenous objects should be minimal

Enums§

SectionError
An error that occured while processing a specific section

Constants§

COLOR_HEADERS 🔒
The headers preceding color values. To be ignored

Functions§

scalar_to_string 🔒
Process a scalar into a string. The ToString implementation of [Scalar] will be used if the scalar is ASCII. This implementation is weird overall because it will not handle non-ASCII characters correctly.