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
Methods
- Write<T>(T, byte)
Stores
valueas this component's payload.