Table of Contents

Method RoundTripKeepsSaveData

Namespace
GrindFest
Assembly
GrindFest.dll

RoundTripKeepsSaveData()

Everything a party would be made of, through MemoryPack.MemoryPackSerializer and back. Deliberately includes the shapes that are easy to get wrong: a nullable struct, a nullable int, an enum, an enum-keyed dictionary, a nested list of the same type twice (hero → inventory → item), a System.Version and a component payload.

It registers the formatters itself first, and that line is not decoration: the RuntimeInitializeOnLoadMethod hook that does it in a player does not run outside play mode, and this check is meant to run in the editor too. It failed on exactly that the first time it ran.

public static string RoundTripKeepsSaveData()

Returns

string