public void WriteTo(IWriteStream output) { if (value != 0F) { output.WriteRawTag(13); output.WriteFloat(value); } }
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); } }
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]); } } }