Skip to main content

MoveMessage

A static class in Root.Township, Alta.Networking.

Network message that sets an entity's position and rotation on clients.

Fields​

3 private and internal fields
MemberWhat it is
private static Logger loggerNLog logger for this class.
private static Vector3 positionThe position being sent, packed relative to the entity's chunk.
private static Quaternion rotationThe rotation being sent, compressed.

Methods​

MemberWhat it is
static void Serialize(Connection connection, Stream stream)Writes or reads the transform. Remote clients move the entity (or wait for it to spawn) and call its IUpdateOnMove components.
static void Set(NetworkEntity entity)Fills the message from an entity's current position and rotation.