跳到主要内容
版本:Next

ReadyM.Api.Multiplayer.Generators

Classes​

DeriveINetSerializableAttribute

Decorate a struct with this attribute to make it available for use as an RPC parameter.

HalfPrecisionAttribute

The annotated float or vector will be serialized on the wire as 16-bit floats, saving 2 bytes per float.

InternedAttribute

Sends a NativeString256, or a NativeList of them, as a small id once the server has seen the string.

QuantizeAngleAttribute

Indicates a float field holding an angle in degrees as bits bits (8 or 16), splitting the full circle into 2^bits steps.

QuantizeAttribute

The float or vector field is sent over the wire as a fixed-point number in bits bits (8, 16 or 24) between min and max, instead of a 4-byte float per number.