Repository navigation
feat: the player screen, for the television at the end of the table (slice 24) - #25
Merged
Merged
Conversation
/campaigns/{campaign}/screen is one page on its own layout that shows what
the whole party may see and nothing else, whoever opened it: the turn order
with health as a word, a handout full size, a map with the pins the party
found, or the revealed clocks, with the clocks in a strip the rest of the
time. Every read goes through a gate that takes no user and no role, so a
GM who opens it on the laptop that feeds the wall reads what a player reads.
The GM chooses from a card on the Run screen. Putting a hidden handout up
reveals it through RevealHandout on the way. A ScreenChanged event with no
payload tells every open screen, and the screen also re-renders on the four
table events. The two columns travel in the export and the importer remaps
the page after the entities. DeleteEntity clears them, because a soft delete
never fires nullOnDelete. The demo world has the duke's letter up.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Slice 24 of the P3 queue: the player screen for a second display.
/campaigns/{campaign}/screen, on its own layout with no sidebar and no controls, shows what the whole party may see: the fight as the party sees it, a handout full size, a map with the pins the party found, or the revealed clocks, with the clocks in a strip the rest of the time.Combatant::visibleToPlayers(),Clock::visibleTo(Player), and two new user-free scopes,Entity::visibleToParty()andMapMarker::visibleToParty(). A GM who opens it reads exactly what a player reads.RevealHandouton the way. Maps are offered only when the party may already see them and they have a picture.screen_focusandscreen_entity_id, resolved byCampaign::screen(). A focus that needs a page and gets none back through the gate resolves to nothing, so a handout taken back comes off the wall on the next render.ScreenChangedbroadcasts with an empty payload on the campaign's presence channel,ShouldRescue. The screen also re-renders on the four table events and polls at sixty seconds.DeleteEntityclears both columns on a soft delete.Checks
docs/plans/2026-09-13-feat-player-screen-plan.md.