Unity Game SDKv0.5.1Download SDK
RUEN

Game SDK protocol v1

DirectionMessagePurpose
Game → Launcherclient.helloauthenticate with the session token
Game → Launchergame.readyreport that the game is loaded
Launcher → Gamesession.startstart the round
Launcher → Gametarget.hitdeliver hit coordinates
Launcher → Gamesession.pause/resume/stopcontrol the session
Game → Launcherscore.updatesend a live result
Game → Launchersession.completesend the final result

Message envelope

{
  "msg": "target.hit",
  "seq": 18,
  "session_id": "session-123",
  "ts_monotonic_ms": 42114,
  "body": {
    "shot_id": "shot-0004",
    "x_mm": 1432,
    "y_mm": 817
  }
}

Control reasons

MessageAllowed values
session.pauseoperator_requested, controller_unavailable, license_state_changed, focus_lost
session.stopnormal_end, operator_abort, host_shutdown, device_fault
device.stateready, degraded, controller_lost, busy

Envelope schema: game-sdk-envelope.v1.schema.json.