Wayfinder Studio: Minimap, Compass, Waypoint and Toast Kit
README.md
core
The kit's shared state: settings, points of interest, map areas and shapes, objectives, per-viewer fog and waypoints, toast routing, and the baked map picture.
Everything that differs between players is keyed by a viewer key: the player's userId in play (C.localKey() for this peer), or any string for a stand-in such as the gallery walker or a test viewer. The renderers read this module; navUiKit.nav writes it. Useful calls: C.localKey(), C.keyOf(who), C.posOf(target), C.reveal(key, x, z, r), C.exploredShare(key), C.objectivesFor(key), C.deliverToast(to, toast) and C.bake(). Set C.relay = { send = fn(kind, payload) } to carry shared objectives and toasts to other peers, and feed received messages to Nav._receive(kind, payload).