Files
Commonwealth-Online-Public/protocol/packets.md
T
2026-05-30 18:13:54 +12:00

612 B

Packet Types

This document describes planned packet types for the multiplayer prototype.

Welcome Packet

Sent from server to client after connection.

Fields:

type
playerId
serverTime

Transform Packet

Sent from client to server and broadcast to other clients.

Fields:

type
playerId
cellId
worldspaceId
x
y
z
pitch
yaw
roll
timestamp

Animation State Packet

Planned later.

Fields:

type
playerId
movementState
weaponDrawn
isCrouching
isSprinting
isAiming
isFiring

Disconnect Packet

Sent when a player leaves.

Fields:

type
playerId
reason