示例#1
0
 static partial void FillBinaryBoundsCustom(MutagenFrame frame, IPlacedPrimitive item)
 {
     item.Bounds = new P3Float(
         frame.ReadFloat() * 2,
         frame.ReadFloat() * 2,
         frame.ReadFloat() * 2);
 }
示例#2
0
            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);
            }
示例#3
0
 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(),
         };
     }
 }