design: wall wire format, schema and migration (#49)
This commit is contained in:
+7
-3
@@ -9,7 +9,7 @@ How big a token is on the map, as a radius in map pixels. A token uses its own s
|
||||
_Avoid_: token scale, token diameter, size preset
|
||||
|
||||
**Height**:
|
||||
How tall a figure is, in metres. A character has a base height; a token may carry its own instead, a temporary on-map override (a spell that enlarges the figure) that never changes the character and disappears with the token. A plain token has only its own height and must have one. Players never see the number, only what it lets them see.
|
||||
How tall a figure is, in metres. A character has a base height; a token may carry its own instead, a temporary on-map override (a spell that enlarges the figure) that never changes the character and disappears with the token. A plain token has only its own height and must have one. Players never see the number, only what it lets them see. A wall's height is a different thing with the same unit: an optional field on the wall itself, in metres (see Wall).
|
||||
_Avoid_: elevation, z, altitude (those are position above the ground)
|
||||
|
||||
**Eye height**:
|
||||
@@ -51,13 +51,17 @@ A figure on the map. It may belong to a character; a plain token (monster, item)
|
||||
_Avoid_: entity, piece, counter
|
||||
|
||||
**Wall**:
|
||||
A barrier on the map with a length, a thickness and a height. It hides what its dimensions hide. What it *does* is a set of **switches** it carries: blocks sight, blocks movement, (for sight) a direction, and whether players see a marker; a door is a wall with the door setting plus open/secret/locked. A named wall kind is only a preset over those switches, never the wall's own identity. A wall is full height unless the GM gives it a height in metres, so by default nobody sees over it; an older wall without a height keeps hiding everything behind it. A low wall hides only what fails the see-over line (see Low wall, See-over). A wall has no thickness unless the GM gives it one; then it occupies a strip of floor on one side or both sides of the drawn line (see Wall body), and an older wall has none and hides exactly what is behind the line. Only the GM opens or closes a door in v1.
|
||||
A barrier on the map with a length, a thickness and a height. It hides what its dimensions hide. What it *does* is a set of **switches** it carries: blocks sight, blocks movement, (for sight) a direction, and whether players see a marker; a door is a wall with the door setting plus open/secret/locked. A named wall kind is only a preset over those switches, never the wall's own identity. A wall is full height unless the GM gives it a height in metres, so by default nobody sees over it; an older wall without a height keeps hiding everything behind it. The wall's height is its own field, never a token property, and only the GM sees the number. A low wall hides only what fails the see-over line (see Low wall, See-over). A wall has no thickness unless the GM gives it one; then it occupies a strip of floor on one side or both sides of the drawn line (see Wall body), and an older wall has none and hides exactly what is behind the line. Only the GM opens or closes a door in v1.
|
||||
_Avoid_: blocker, collider, obstacle, sight blocker, wall type (use preset)
|
||||
|
||||
**Player marker**:
|
||||
The one wall fact a player ever receives: an anchor point on a wall whose `player_marker` switch is on, sent once that player has seen part of the wall and then kept like explored memory. It is a point and nothing else — no kind, no open/closed, no direction, no label, no thickness, no wall id — and the client draws the window icon there. A wall with the marker off is invisible to players; a GM can turn the marker on for any wall. Only the GM's changes take it back (wall removed, marker off, no longer a window, geometry moved), and a moved wall has to be seen again before its marker returns.
|
||||
The one wall fact a player ever receives: an anchor point on a wall whose `player_marker` switch is on, sent once that player has seen part of the wall and then kept like explored memory. It is a point and nothing else — no kind, no open/closed, no direction, no label, no thickness, no wall id — and the client draws the window icon there. A wall with the marker off is invisible to players; a GM can turn the marker on for any wall, but a marker is only sent for a wall that is still a window. Only the GM's changes take it back (wall removed, marker off, no longer a window, geometry moved), and a moved wall has to be seen again before its marker returns. Each player gets their own markers as a full set when they connect and only changes after that; the GM never receives them.
|
||||
_Avoid_: window marker, wall hint, marker flag (the switch is `player_marker`)
|
||||
|
||||
**Marker id**:
|
||||
The opaque name a player's marker has on the wire: a short random string the server assigns per player, never the wall's id and never shared between players. It exists so the client can add a marker once and remove that exact one later without the frame revealing which wall it is or how many walls exist.
|
||||
_Avoid_: wall id, marker index, window id
|
||||
|
||||
**Wall label**:
|
||||
An optional free-text name the GM gives a wall, e.g. "railing", "pit edge", "the king's window". It has no behaviour, never changes the derived kind, and never reaches a player. It is how one object can be many things in the GM's head: a railing, a bush and a fixed window are the same wall with the same switches and different labels.
|
||||
_Avoid_: wall name, wall description, wall type
|
||||
|
||||
Reference in New Issue
Block a user