Types

Every field in a gamehoster-schema.json declares a type. The type fixes how the value is stored and, for predicted fields, how it behaves when the client corrects toward the server: continuous types ease toward the authoritative value so motion stays smooth, while the rest snap.

TypeMeaningWhen predicted
numberA decimal number: a position, a velocity, an angle.eases (continuous)
intA whole number: a score, a count, a grid cell.snaps
boolEither true or false.snaps
stringFree text: a name, a square like e4, or one of a fixed set of choices such as a phase.snaps
vec2A 2-D vector {x,y}: a point, a direction.eases (continuous)
vec3A 3-D vector {x,y,z}.eases (continuous)
refA stable id of another player or entity, named by "to": "player". Survives reordering, so "my own body vs someone else's" is an id check.snaps
listAn ordered list of values.snaps
mapA collection of values keyed by id.snaps

Notes