Vixen
02b45cc4
csharp
public sealed class QuantizeAttribute

Declares what a float is a float of, so it can be sent in fewer bits.

No guide page documents this yet — the page shows what the code says about itself.

As a annotation

Valid on
Property, Field, Parameter

Remarks

Read by Vixen.Net.Generators, which turns it into a QuantizeRange in the emitted replicator. Putting it on the field rather than in the sending code is the point: the precision a packet costs is then declared where the field is declared, and reviewed when the field is.

Fields and properties (3)

  • public float Min

    The smallest value that will be sent exactly.

  • public float Max

    The largest.

  • public int Bits

    How many bits to spend.

Methods (1)

  • public QuantizeAttribute(float min, float max, int bits)

    Declares what a float is a float of, so it can be sent in fewer bits.

Used by (5)

  • AvatarControllerMultiplayer
  • GeneratedPoseVixen.Net.Generators.Tests
  • GeneratedTransformVixen.Net.Generators.Tests
  • GeneratedTurretVixen.Net.Generators.Tests
  • ReplicatedPositionVixen.Net.Tests