# create
function create()Implements the `create` operation for `miniquake.model_registry` (create).
src/miniquake/model_registry.mlminiquake/array_util.ml as arrayutil → src/miniquake/array_util.mlminiquake/byteio.ml as bio → src/miniquake/byteio.mlminiquake/constants.ml as c → src/miniquake/constants.mlminiquake/cvar.ml as cvar → src/miniquake/cvar.mlminiquake/filesystem.ml as qfs → src/miniquake/filesystem.mlminiquake/format/bsp.ml as bsp → src/miniquake/format/bsp.mlminiquake/format/mdl.ml as mdl → src/miniquake/format/mdl.mlminiquake/format/sprite.ml as sprite → src/miniquake/format/sprite.mlminiquake/render/colored_lightmaps.ml as coloredLightmaps → src/miniquake/render/colored_lightmaps.mlminiquake/render/gl_warp.ml as glWarp → src/miniquake/render/gl_warp.mlminiquake/types.ml as t → src/miniquake/types.mlminiquake/world_bsp.ml as world → src/miniquake/world_bsp.mlfunction create()Implements the `create` operation for `miniquake.model_registry` (create).
function findIndex(registry, name)strcmp, not Q_strcasecmp: model identity is case-sensitive in MiniQuake.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `findIndex`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
function get(registry, name)Implements the `get` operation for `miniquake.model_registry` (get).
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `get`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
function loadBytes(registry, name, data)Loads bytes for `miniquake.model_registry`.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `loadBytes`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
data | dynamic | — | Input data consumed by the operation. |
const MOD_ALIAS = 2Defines the mod alias value used by `miniquake.model_registry`.
const MOD_BRUSH = 0Defines the mod brush value used by `miniquake.model_registry`.
function Mod_ClearAll(registry)Mirror Quake's Mod_ClearAll routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `Mod_ClearAll`. |
function Mod_Extradata(registry, filesystem, index)Mirror Quake's Mod_Extradata routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `Mod_Extradata`. |
filesystem | dynamic | — | The filesystem input consumed by `Mod_Extradata`. |
index | dynamic | — | Zero-based index of the requested entry. |
function Mod_FindName(registry, name)Mirror Quake's Mod_FindName routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `Mod_FindName`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
function Mod_ForName(registry, filesystem, name, crash)Mirror Quake's Mod_ForName routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `Mod_ForName`. |
filesystem | dynamic | — | The filesystem input consumed by `Mod_ForName`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
crash | dynamic | — | The crash input consumed by `Mod_ForName`. |
function Mod_Init(registry, cvars)Mod_Init. mod_novis is the original MAX_MAP_LEAFS/8 all-visible row. gl_subdivide_size is archived exactly as in gl_model.c.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `Mod_Init`. |
cvars | dynamic | — | The cvars input consumed by `Mod_Init`. |
function Mod_LoadModel(registry, filesystem, index, crash)Mod_LoadModel. MiniLang objects are relocatable GC values, so the alias cache check is represented by retaining registry.models[index].
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `Mod_LoadModel`. |
filesystem | dynamic | — | The filesystem input consumed by `Mod_LoadModel`. |
index | dynamic | — | Zero-based index of the requested entry. |
crash | dynamic | — | The crash input consumed by `Mod_LoadModel`. |
function Mod_Print(registry)Mirror Quake's Mod_Print routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `Mod_Print`. |
const MOD_SPRITE = 1Defines the mod sprite value used by `miniquake.model_registry`.
function Mod_TouchModel(registry, name)Mirror Quake's Mod_TouchModel routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `Mod_TouchModel`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
const MOD_UNKNOWN = -1Defines the mod unknown value used by `miniquake.model_registry`.
function modelBounds(registry, name)Implements the `modelBounds` operation for `miniquake.model_registry` (model bounds).
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `modelBounds`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
function modelCommandNeverExists(name)Report whether model command never exists holds for the active state.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
function modelRadius(registry, name)Implements the `modelRadius` operation for `miniquake.model_registry` (model radius).
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `modelRadius`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
function modelType(registry, name)Return model type derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `modelType`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
function register(registry, name, model)Compatibility helper retained for existing callers.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `register`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
model | dynamic | — | Model resource processed by the operation. |
function registerBrushSubmodels(registry, map)Update subsystem configuration for register brush submodels.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `registerBrushSubmodels`. |
map | dynamic | — | The map input consumed by `registerBrushSubmodels`. |
function registerTyped(registry, name, model, type)Update subsystem configuration for register typed.
| Parameter | Type | Default | Description |
|---|---|---|---|
registry | dynamic | — | The registry input consumed by `registerTyped`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
model | dynamic | — | Model resource processed by the operation. |
type | dynamic | — | The type input consumed by `registerTyped`. |