Class VarFloatPacker
Packs a float using and
Inheritance
System.Object
Inherited Members
Show
Syntax
public sealed class VarFloatPacker
Constructors
VarFloatPacker(Single, Int32)
Declaration
public VarFloatPacker(float precision, int blockSize)
Parameters
Type | Name | Description |
---|---|---|
System.Single | precision | |
System.Int32 | blockSize |
Methods
Pack(NetworkWriter, Single)
Declaration
public void Pack(NetworkWriter writer, float value)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer | |
System.Single | value |
Unpack(NetworkReader)
Declaration
public float Unpack(NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Returns
Type | Description |
---|---|
System.Single |