| | | 1 | | //======================================================================= |
| | | 2 | | // RecordDeep.cs |
| | | 3 | | //======================================================================= |
| | | 4 | | // MIT License, Copyright (c) 2024-present David Oravsky (mrdav30) |
| | | 5 | | // See LICENSE file in the project root for full license information. |
| | | 6 | | //======================================================================= |
| | | 7 | | |
| | | 8 | | namespace Chronicler; |
| | | 9 | | |
| | | 10 | | /// <summary> |
| | | 11 | | /// Helper for reading and writing nested recordable objects during a chronicler pass. |
| | | 12 | | /// </summary> |
| | | 13 | | public static class RecordDeep |
| | | 14 | | { |
| | | 15 | | /// <inheritdoc cref="IChronicler.LookDeep{T}(ref T, string)" path="/*[not(self::param)]"/> |
| | | 16 | | /// <param name="chronicler">The active pass supplied to <see cref="IRecordable.RecordData"/>.</param> |
| | | 17 | | /// <param name="value">The existing instance to write or populate. A missing or null entry leaves the target untouc |
| | | 18 | | /// <param name="name">The stable field name shared by saving and loading.</param> |
| | | 19 | | public static void Look<T>(IChronicler chronicler, ref T value, string name) where T : class, IRecordable |
| | | 20 | | { |
| | 36920 | 21 | | chronicler.LookDeep(ref value, name); |
| | 36918 | 22 | | } |
| | | 23 | | } |