Exemple #1
0
 public void WriteTo(IWriteStream output)
 {
     if (value != 0F)
     {
         output.WriteRawTag(13);
         output.WriteFloat(value);
     }
 }
Exemple #2
0
 public void WriteTo(IWriteStream output)
 {
     if (x != 0F)
     {
         output.WriteRawTag(13);
         output.WriteFloat(x);
     }
     if (y != 0F)
     {
         output.WriteRawTag(21);
         output.WriteFloat(y);
     }
     if (z != 0F)
     {
         output.WriteRawTag(29);
         output.WriteFloat(z);
     }
 }
Exemple #3
0
 public void WriteTo(IWriteStream output)
 {
     if (value != null && value.Count != 0)
     {
         output.WriteRawTag(10);
         output.WriteInt32(4 * value.Count);
         for (int i = 0; i < value.Count; ++i)
         {
             output.WriteFloat(value[i]);
         }
     }
 }