docs: add ADRs for the durable design decisions
22 ADRs: server-authoritative sight and single egress, per-recipient views/diffs, uniform nack, opaque ids, 32 px tile unit, wall switches/presets, see-over, thick walls, open-door gap, typed wall columns, proto 2, build order, zoom clamp, accepted status leak, player marker, chunked explored, slow-client policy, session/key split, closing message, character records, global lock, synchronous choice. Each links its tickets and its spec section.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
# Characters are records separate from tokens
|
||||
|
||||
A character is its own record: identity and base values, exactly one owner (a player or the GM), its
|
||||
own names, `reveal_all`, and three property buckets. A token is what is on the map and holds what is
|
||||
happening to that figure; a plain token (monster, item) belongs to no character. A character's
|
||||
tokens use the character's names, and changing a character's owner never changes a token's
|
||||
controller. We chose this split over putting all data on the token or all data on the character
|
||||
because a character can have several figures across scenes, and because duplicating stats onto every
|
||||
token makes one reveal or rename a fan-out problem.
|
||||
|
||||
## Status
|
||||
accepted
|
||||
|
||||
## Alternatives
|
||||
- All data on the token: rejected, duplicated identity and stats.
|
||||
- All data on the character: rejected, plain tokens (monsters, items) have no character and still
|
||||
need data.
|
||||
- Token controller derived from the character owner: rejected, a figure can be controlled by someone
|
||||
else.
|
||||
|
||||
## Consequences
|
||||
An owner change is explicit (`character.reassign`) and leaves controllers alone. Encounters are
|
||||
per-player snapshots that survive token and character removal and a `gm_only` flip. Linked tokens
|
||||
store empty names and take the character's. The `owner` bucket means character owner plus GM for a
|
||||
character, token controller plus GM for a token. Characters and plain tokens share one id namespace
|
||||
so a reveal row can name either without an ambiguity column.
|
||||
|
||||
## Tickets
|
||||
#14, #23.
|
||||
|
||||
## Spec
|
||||
Current §8 (character, character vs token props, names, encountered), §3.1.
|
||||
Reference in New Issue
Block a user