ludic.base: a queue's fact records come round again (q_rec / q_ring_add), used by effects, clock, wallet, weather, tracks, needs, fire, settings, update, steps, crafting, shop, gear, hints, session and photo instead of a new record per fact; the minimap's marks cleared and rubbed out in place, its scale steps without a list; the clock's dice seeded again, not made again; once-per-join, per-save and pool-miss paths declared
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5be2422c84
commit
d9612ba2a6
31 changed files with 215 additions and 25 deletions
|
|
@ -5,6 +5,8 @@ export property Queue<T> {
|
|||
tag: QueueTag = null
|
||||
none: []T = null # what draining an empty queue hands back, never pushed to
|
||||
spare: []T = null # the list the last drain handed out: cleared and reused by the next
|
||||
ring: []T = null # the facts' records, used again once no list holds them (queue_ring.ludic)
|
||||
ring_at: int = 0
|
||||
}
|
||||
# what a queue says about itself, whatever it holds: its name and how many facts wait in it
|
||||
export property QueueTag {
|
||||
|
|
@ -26,6 +28,7 @@ export function queue_new<T>(name: string) -> Queue<T> {
|
|||
q.tag.name = name
|
||||
q.none = new []T
|
||||
q.spare = new []T
|
||||
q.ring = new []T
|
||||
return q
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue