Protocol: world, part 2 of 2#
The world commands a program sends to a running game, as the engine describes them: what each takes, what it answers and what it does. Back to all commands.
world.checksum#
world.checksum {only?: [text], without?: [text], paired?: value} -> {step: integer, checksum: text} · read, read-only
Answers the checksum of the world, or of the parts of it named: two moments that differ only in what was left out have the same, which is how a search tells a place it has been from a new one. A part is "Component", "Component.field", "state" (what every script keeps), "state:SCRIPT", "state:SCRIPT:KEY" (one key of one script's state), "entities" (which are alive), "names", "random" (the random source), or one thing's component or field by the thing's name, "ball.Transform" and "ball.Transform.x", or a whole thing, "ball" (that it is there, its name and every part): left out, the same field of every other thing is still covered (a component's name is read first).
| Parameters | Type | Meaning |
|---|---|---|
only? | [text] | The parts to cover. Left out: every part. |
without? | [text] | The parts to leave out, of those only covers. Left out: none. |
paired? | value | true: things told apart by name, not by slot: the named in the order of their names, then the others in the order of their slots, what scripts keep as it is written, so two worlds that differ only in which slot each thing is in, and keep no thing's number, have the same checksum (a thing added to a scene moves every thing made after it). A test of a change compares two games so; a number a script keeps is compared as a number, so a game that keeps a thing's number in state differs where the thing moved slot. A whole thing named as a part ("ball") is always paired. Left out: false, by slot, the checksum every other command answers. |
| Result | Type | Meaning |
|---|---|---|
step | integer | How many fixed steps have run. |
checksum | text | The checksum of the parts covered, 16 hex digits. With neither only nor without it is the checksum every other command answers. |
Generated from Coldwave 0.0.1 r289, 2026-11-30 by the binary itself: do not edit by hand.