public static void FillBinaryCloudColors(MutagenFrame frame, CloudLayer[] clouds) { var rec = frame.ReadSubrecord(); frame = frame.SpawnWithLength(rec.ContentLength); for (int i = 0; i < NumLayers; i++) { if (frame.Complete) { return; } clouds[i].Colors = new WeatherColor() { Sunrise = frame.ReadColor(ColorBinaryType.Alpha), Day = frame.ReadColor(ColorBinaryType.Alpha), Sunset = frame.ReadColor(ColorBinaryType.Alpha), Night = frame.ReadColor(ColorBinaryType.Alpha), }; } }