Skip to main content

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
TypeNameDescription
System.SinglexMax
System.SingleyMax
System.Int32xBitCount
System.Int32yBitCount

Vector2Packer(Single, Single, Single, Single)

Declaration
public Vector2Packer(float xMax, float yMax, float xPrecision, float yPrecision)
Parameters
TypeNameDescription
System.SinglexMax
System.SingleyMax
System.SinglexPrecision
System.SingleyPrecision

Vector2Packer(Vector2, Vector2)

Declaration
public Vector2Packer(Vector2 max, Vector2 precision)
Parameters
TypeNameDescription
Vector2max
Vector2precision

Methods

Pack(NetworkWriter, Vector2)

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

Unpack(NetworkReader)

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