copyStatFields
copyStatFields(
step):void
Sets each field registerStatField registered, from the stat, on each
entity that has both: what stats.systems.copyFields runs, and what a
game’s own replacement of that system calls. On a page in a room it sets
only a trait the page predicts: an entity the room’s stream sets keeps
what it sent, and a field of a trait the room streams is the room’s. On
the player’s page’s re-run, where step.rerunEntities names the
player’s set, it sets those alone, from the stats the room last sent,
before any rule of the step reads them, as the room’s step does.
A core verb, not the plugin’s code: no public call lists the registered fields, which the rewind and the inspector read too, and it writes every kind of trait a stat may set, each of which a public pass reaches its own way.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
step |
PredictedStep |
Returns
Section titled “Returns”void