wip(0.S2): migrate - a var nothing writes becomes a let; a state is keyed by its module, directory or program, so every program's plan agrees; paths normalized; program states named SceneDemoState / scene_demo_st; the LSP reads state, mut and entry/handler parameters
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3eda72e8c2
commit
5ffe50ed02
463 changed files with 72045 additions and 67421 deletions
|
|
@ -22,19 +22,15 @@ export property CompassProvider {
|
|||
|
||||
export open registry CompassProviders of CompassProvider as COMPASS_FROM
|
||||
|
||||
export state CompassState {
|
||||
cmp_cap: int = 64
|
||||
cmp_list: []CompassMark = null # this frame's, sorted and culled
|
||||
cmp_capturing: bool = false
|
||||
cmp_caught: []CompassMark = null # what providers said while someone was listening
|
||||
cmp_ranges: []float = null
|
||||
cmp_radar_from: int = 2 # marks of at least this tier are blips; the tracked one always is
|
||||
}
|
||||
var cmp_cap: int = 64
|
||||
var cmp_list: []CompassMark = null # this frame's, sorted and culled
|
||||
var cmp_capturing: bool = false
|
||||
var cmp_caught: []CompassMark = null # what providers said while someone was listening
|
||||
|
||||
# how many marks a frame keeps (the lowest priorities go first past it)
|
||||
export function compass_config(compass_st: mut CompassState, cap: int) -> void {
|
||||
compass_st.cmp_cap = Math.max(cap, 1)
|
||||
compass_begin(compass_st)
|
||||
export function compass_config(cap: int) -> void {
|
||||
cmp_cap = Math.max(cap, 1)
|
||||
compass_begin()
|
||||
}
|
||||
|
||||
function cmp_new(x: float, z: float, icon: int, colour: int, tier: int, prio: int, label: string) -> CompassMark {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue