WorldStreamer
此内容尚不支持你的语言。
Defined in: residency/WorldStreamer.ts:156
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WorldStreamer(
host):WorldStreamer
Defined in: residency/WorldStreamer.ts:172
Parameters
Section titled “Parameters”Returns
Section titled “Returns”WorldStreamer
Accessors
Section titled “Accessors”manifest
Section titled “manifest”Get Signature
Section titled “Get Signature”get manifest():
WorldManifest|null
Defined in: residency/WorldStreamer.ts:199
Returns
Section titled “Returns”WorldManifest | null
Methods
Section titled “Methods”clear()
Section titled “clear()”clear():
void
Defined in: residency/WorldStreamer.ts:309
Everything goes; the cells stay registered. For a world being torn down.
Returns
Section titled “Returns”void
delivery()
Section titled “delivery()”delivery():
Record<string,CellDelivery>
Defined in: residency/WorldStreamer.ts:250
Per cell: where its last delivery spent its time.
Per CELL and not a running average, because the question prefetch answers is asked one arrival at a time: a mean over hits and misses together describes no arrival that happened.
Returns
Section titled “Returns”Record<string, CellDelivery>
loadManifest()
Section titled “loadManifest()”loadManifest(
manifest,sceneConfig?):void
Defined in: residency/WorldStreamer.ts:183
Adopt a cooked world: its cells become loadable scenes and residency answers for them.
Registered here, not beside the game’s own scenes: a cell is content
residency brings in, and switchTo('cell_3_2') is a second author.
Parameters
Section titled “Parameters”manifest
Section titled “manifest”sceneConfig?
Section titled “sceneConfig?”(cell) => SceneConfig
Returns
Section titled “Returns”void
recordPhase()
Section titled “recordPhase()”recordPhase(
name,phase,ms):void
Defined in: residency/WorldStreamer.ts:238
Where a cell’s load spent its time.
Most of a load runs BETWEEN frames — off every system timer there is — so a profiler watching the frame loop sees the cost and cannot name it.
Parameters
Section titled “Parameters”string
string
number
Returns
Section titled “Returns”void
renderReadinessOf()
Section titled “renderReadinessOf()”renderReadinessOf(
name):RenderReadinessStamp|null
Defined in: residency/WorldStreamer.ts:216
The render-program claim a cell holds, or null when it holds none.
A cell on a host with no renderer holds NONE — the obligation did not apply, which is a different fact from a claim that succeeded and must stay distinguishable from one. Publication reads this to re-check freshness.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”RenderReadinessStamp | null
residencyOf()
Section titled “residencyOf()”residencyOf(
name):CellResidency
Defined in: residency/WorldStreamer.ts:203
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”restampsOf()
Section titled “restampsOf()”restampsOf(
name):number
Defined in: residency/WorldStreamer.ts:228
How often publication found this cell’s claim stale and made a new one.
Zero across a dwell where nothing moved: readying again for content that did not change is the cost prefetching exists to avoid paying twice.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”number
status()
Section titled “status()”status():
WorldStreamerStatus
Defined in: residency/WorldStreamer.ts:316
Returns
Section titled “Returns”update()
Section titled “update()”update(
sources):void
Defined in: residency/WorldStreamer.ts:274
Reconcile residency against where the sources are.
The sources arrive as a list and are unioned, never folded: a fold gives the last one written the whole answer, and then a second camera deletes the world the first is standing in.
Parameters
Section titled “Parameters”sources
Section titled “sources”readonly ResidencySource[]
Returns
Section titled “Returns”void