static partial void FillBinarySunriseBeginCustom(MutagenFrame frame, IClimateData item) { if (GetDate(frame.Reader.ReadUInt8(), out var date)) { item.SunriseBegin = date; } }
public static partial void FillBinarySunsetEndCustom(MutagenFrame frame, IClimateData item) { if (GetDate(frame.Reader.ReadUInt8(), out var date)) { item.SunsetEnd = date; } }
static partial void FillBinaryPhaseCustom(MutagenFrame frame, IClimateData item) { var b = frame.Reader.ReadUInt8(); if (EnumExt.TryParse <Climate.MoonPhase>(GetPhaseInt(b), out var e)) { item.Phase = e; } else { throw new ArgumentException($"Unknown moon phase type: {b}"); } item.PhaseLength = GetPhaseLen(b); }
static partial void FillBinaryPhaseLengthCustom(MutagenFrame frame, IClimateData item) { // Handled in Phase section }