Class AnglePacker
Inheritance
System.Object
Inherited Members
Show
Syntax
public sealed class AnglePacker
Constructors
AnglePacker(Single)
Declaration
public AnglePacker(float lowestPrecision)
Parameters
Type | Name | Description |
---|---|---|
System.Single | lowestPrecision | lowest precision, actual precision will be caculated from number of bits used |
Methods
Pack(Single)
Declaration
public uint Pack(float value)
Parameters
Type | Name | Description |
---|---|---|
System.Single | value |
Returns
Type | Description |
---|---|
System.UInt32 |
Pack(NetworkWriter, Single)
Declaration
public void Pack(NetworkWriter writer, float value)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer | |
System.Single | value |
Unpack(UInt32)
Declaration
public float Unpack(uint value)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | value |
Returns
Type | Description |
---|---|
System.Single |
Unpack(NetworkReader)
Declaration
public float Unpack(NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Returns
Type | Description |
---|---|
System.Single |