Class RecordDeepStruct
- Namespace
- Chronicler
- Assembly
- Chronicler.dll
Helper for reading and writing nested recordable structs during a chronicler pass.
public static class RecordDeepStruct
- Inheritance
-
RecordDeepStruct
- Inherited Members
Methods
Look<T>(IChronicler, ref T, string)
Records an owned struct inline.
public static void Look<T>(IChronicler chronicler, ref T value, string name) where T : struct, IRecordable
Parameters
chroniclerIChroniclerThe active pass supplied to RecordData(IChronicler).
valueTThe value to write on save. A present record loads into a fresh value. For missing or null input, the pass runs the schema against an empty record before replacing this value.
namestringThe stable field name shared by saving and loading.
Type Parameters
TThe type of the owned value.
Remarks
If a present record throws while applying its schema, the new value can be partly updated. If applying an empty record throws, the prior value is retained.