refactor(packages): 0.R5 - jobs, session, settings, hints and net make their tables when the state is made, not on the first question (jobs__ensure, session__init and ply_init, sg_init, hn_mute_ensure, net__init gone); their questions read
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
63c30b9ebe
commit
9e4f4edb92
21 changed files with 98 additions and 163 deletions
|
|
@ -1,6 +1,5 @@
|
|||
# roster.ludic - who is here. Slot 0 is this machine's player and reads the SessionLocal port
|
||||
# live; slots 1.. are remote players, filled by what their machines report.
|
||||
export function ply_init(session_st: mut SessionState) -> void { session__init(session_st) }
|
||||
|
||||
export function ply_on(session_st: SessionState, p: int) -> bool {
|
||||
if p == 0 { return true }
|
||||
|
|
@ -26,7 +25,6 @@ export function ply_count(session_st: SessionState) -> int {
|
|||
# a remote player comes in, standing where this one stands until they say: the first free
|
||||
# slot, or -1 when the party is full
|
||||
export function ply_join(session_st: mut SessionState, pid: int) -> int {
|
||||
session__init(session_st)
|
||||
if pid <= 0 { return -1 } # 0 is this machine's player
|
||||
for p in 1 .. PLY_MAX {
|
||||
if session_st.session__slot[p].on { continue }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue