# Info_StateAt
function Info_StateAt(s)Returns the canonical state object for a valid index and safely falls back to the null state for invalid input.
| Parameter | Type | Default | Description |
|---|---|---|---|
s | dynamic | — | S value supplied to `Info_StateAt`. |
src/info.mlDefines static gameplay tables for states, things, and weapon metadata.
d_think.ml → src/d_think.mlm_fixed.ml → src/m_fixed.mlp_mobj.ml → src/p_mobj.mlsounds.ml → src/sounds.mlfunction Info_StateAt(s)Returns the canonical state object for a valid index and safely falls back to the null state for invalid input.
| Parameter | Type | Default | Description |
|---|---|---|---|
s | dynamic | — | S value supplied to `Info_StateAt`. |
function Info_StateIndex(s)Resolves a state object back to its canonical index, returning the null state when the value is absent or unknown.
| Parameter | Type | Default | Description |
|---|---|---|---|
s | dynamic | — | S value supplied to `Info_StateIndex`. |
mobjinfoStores the mobjinfo collection used by the info subsystem.
mobjinfo_t struct
mobjtype_t enum
spritenum_t enum
sprnamesStores the sprnames collection used by the info subsystem.
state_t struct
statenum_t enum
statesStores the states collection used by the info subsystem.