public void WriteTo(DataStreamWriter writer, ref ProjectileExplodedEndReason baseline, DefaultSetup setup, SerializeClientData jobData) { var quantized = new QuantizedFloat3(); quantized.Set(100, normal); for (var i = 0; i != 3; i++) { writer.WritePackedInt(quantized[i], jobData.NetworkCompressionModel); } }
public void WriteTo(DataStreamWriter writer, ref CurrentWeapon baseline, GhostSetup setup, SerializeClientData jobData) { writer.WritePackedUInt(setup[Target], jobData.NetworkCompressionModel); }