Class Vector2Packer
Inheritance
System.Object
Inherited Members
Show
Syntax
public sealed class Vector2Packer
Constructors
Vector2Packer(Single, Single, Int32, Int32)
Declaration
public Vector2Packer(float xMax, float yMax, int xBitCount, int yBitCount)
Parameters
Type | Name | Description |
---|---|---|
System.Single | xMax | |
System.Single | yMax | |
System.Int32 | xBitCount | |
System.Int32 | yBitCount |
Vector2Packer(Single, Single, Single, Single)
Declaration
public Vector2Packer(float xMax, float yMax, float xPrecision, float yPrecision)
Parameters
Type | Name | Description |
---|---|---|
System.Single | xMax | |
System.Single | yMax | |
System.Single | xPrecision | |
System.Single | yPrecision |
Vector2Packer(Vector2, Vector2)
Declaration
public Vector2Packer(Vector2 max, Vector2 precision)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | max | |
Vector2 | precision |
Methods
Pack(NetworkWriter, Vector2)
Declaration
public void Pack(NetworkWriter writer, Vector2 value)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer | |
Vector2 | value |
Unpack(NetworkReader)
Declaration
public Vector2 Unpack(NetworkReader reader)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader |
Returns
Type | Description |
---|---|
Vector2 |