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