ludic.shop, ludic.net: nothing made per tick - the week's lists and dice reused, the net's facts from a ring, the room's watch address made once, pools and kept lists through kept_push; what runs once per host, join, room or guest says so in @alloc_ok
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f5834f8f63
commit
4b533b5ff6
18 changed files with 86 additions and 23 deletions
|
|
@ -99,6 +99,7 @@ export function net_reset(net_st: mut NetState) -> void {
|
|||
export function net_lose(net_st: mut NetState, why: int) -> void { net__lose_with(net_st, why, "") }
|
||||
|
||||
# ... with what the reason is about (the room code nobody had)
|
||||
@alloc_ok("once, when the party is lost")
|
||||
function net__lose_with(net_st: mut NetState, why: int, text: string) -> void {
|
||||
net_reset(net_st)
|
||||
net_st.net__state = NET_LOST
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue