static partial void FillBinaryBoundsCustom(MutagenFrame frame, IPlacedPrimitive item) { item.Bounds = new P3Float( frame.ReadFloat() * 2, frame.ReadFloat() * 2, frame.ReadFloat() * 2); }
static partial void FillBinaryMinCustom(MutagenFrame frame, IWorldspaceObjectBounds item) { var subHeader = frame.ReadSubrecord(); if (subHeader.ContentLength != 8) { throw new ArgumentException("Unexpected length"); } item.Min = new P2Float( frame.ReadFloat() / 4096f, frame.ReadFloat() / 4096f); }
public static void FillBinaryCloudAlphas(MutagenFrame frame, CloudLayer[] clouds) { frame.ReadSubrecord(); for (int i = 0; i < NumLayers; i++) { clouds[i].Alphas = new WeatherAlpha() { Sunrise = frame.ReadFloat(), Day = frame.ReadFloat(), Sunset = frame.ReadFloat(), Night = frame.ReadFloat(), }; } }