Schemas / Net
rig.net.replica
v1.0.0 · stable maturity: draft 3 fields 1 required
Fields
| Field | Type | Meaning | |
|---|---|---|---|
netId |
string | required | Stable id across peers |
owner |
int | optional | Optional. Player index that owns it. Absent = no owning player |
authority |
enumserver · owner | optional | Optional. server or owner; absent = server |
Network identity for one entity. Format when present.
The replicated fields are the other components on the entity. This component says who may write them.
Transport, interest, and client prediction stay in the host. A show bus such as rig.io.osc is a listen/send endpoint, not this identity.
JSON Schema
Resolves at https://rig.works/schemas/rig.net.replica.schema.json —
raw file.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://rig.works/schemas/rig.net.replica.schema.json",
"title": "rig.net.replica",
"type": "object",
"additionalProperties": false,
"properties": {
"netId": {
"$ref": "./_defs.schema.json#/$defs/string"
},
"owner": {
"$ref": "./_defs.schema.json#/$defs/int"
},
"authority": {
"type": "string",
"enum": [
"server",
"owner"
]
}
},
"required": [
"netId"
],
"x-rig-maturity": "draft"
}