refactor(packages): 0.R5 - a question no longer starts its state - 64 lazy starts ('if st.x == null { st.x = ... }' inside a getter) are the state's defaults, gear__ensure is gone, and ludic migrate state --tighten took mut off 208 package parameters: things_all, thing_find, gear_charge, gear_level, jobs_state and the rest read
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
54f5efb23f
commit
9862ec82e3
102 changed files with 320 additions and 351 deletions
|
|
@ -51,7 +51,7 @@ export state UiState {
|
|||
ca_bare: bool = false
|
||||
cs_pass: int = 0
|
||||
ua_sh: UiSheet = null
|
||||
uc_list: []UiClass = null # filled by the compiler's registrations, before the program's globals
|
||||
uc_list: []UiClass = new []UiClass # filled by the compiler's registrations, before the program's globals
|
||||
cl_alpha: float = 1.0
|
||||
ct_capture: string = ""
|
||||
ct_capture_at: int = -1 # the frame listening began, whose own key started it
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ export property UiClass {
|
|||
seen_lss: string = ""
|
||||
}
|
||||
export function ui_register(ui_st: mut UiState, k: UiClass) -> int {
|
||||
if ui_st.uc_list == null { ui_st.uc_list = new []UiClass }
|
||||
push(ui_st.uc_list, k)
|
||||
return len(ui_st.uc_list)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue