Table of Contents

Struct ComponentPayload.Writer

Namespace
GrindFest
Assembly
GrindFest.dll

One component's slot in the save: the payload dictionary plus the key that component owns. Handing this to Serialize(Writer) and Deserialize(Reader) is what keeps a component from having to know about keys, byte arrays or a missing entry - and it makes it impossible for the two directions to disagree about the key, which is exactly how the crop component's state silently stopped round-tripping.

public readonly struct ComponentPayload.Writer
Inherited Members

Constructors

Writer(Dictionary<string, byte[]>, string)

Methods

Write<T>(T, byte)

Stores value as this component's payload.