コード例 #1
0
 public override void Read(Library.Collections.BitStream stream, out Half value, MySerializeInfo info)
 {
     if (info.IsNormalized && info.IsFixed8)
     {
         value = stream.ReadByte() / 255.0f;
     }
     else
     {
         value = stream.ReadHalf();
     }
 }