Class RecordNullableDeep
- Namespace
- Chronicler
- Assembly
- Chronicler.dll
Helper for reading and writing optional nested recordable structs during a chronicler pass.
public static class RecordNullableDeep
- Inheritance
-
RecordNullableDeep
- Inherited Members
Methods
Look<T>(IChronicler, ref T?, string)
Records an optional 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).
valueT?The value to write on save. A missing or null entry clears it on load. A present record is staged before assignment.
namestringThe stable field name shared by saving and loading.
Type Parameters
TThe underlying non-nullable struct type.
Remarks
An absent value is omitted on save. A failure while loading a present record leaves the existing nullable value in place.