Skip to main content

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
TypeNameDescription
Vector2precision
System.Int32blocksize

Methods

Pack(NetworkWriter, Vector2)

Declaration
public void Pack(NetworkWriter writer, Vector2 position)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkWriterwriter
Vector2position

Unpack(NetworkReader)

Declaration
public Vector2 Unpack(NetworkReader reader)
Parameters
TypeNameDescription
Mirage.Serialization.NetworkReaderreader
Returns
TypeDescription
Vector2