public static void Write(
     this PrimitiveBinaryTranslation <float, MutagenFrame, MutagenWriter> transl,
     MutagenWriter writer,
     float item,
     RecordType header,
     float multiplier)
 {
     transl.Write(writer, item / multiplier, header);
 }
 public static void WriteNullable(
     this PrimitiveBinaryTranslation <float, MutagenFrame, MutagenWriter> transl,
     MutagenWriter writer,
     float?item,
     RecordType header,
     float multiplier)
 {
     if (!item.HasValue)
     {
         return;
     }
     transl.Write(writer, item.Value / multiplier, header);
 }
Exemple #3
0
 public static void Write(
     this PrimitiveBinaryTranslation <Color, MutagenFrame, MutagenWriter> transl,
     MutagenWriter writer,
     Color item,
     RecordType header,
     ColorBinaryType binaryType)
 {
     transl.Write(
         writer,
         item,
         header,
         write: ColorBinaryTranslation.GetWriter(binaryType));
 }