MiniQuake

src/miniquake/model_registry.ml

Package
miniquake.model_registry
Reachable
Yes

Imports

Declarations

create

function create()

Implements the `create` operation for `miniquake.model_registry` (create).

View source

findIndex

function findIndex(registry, name)

strcmp, not Q_strcasecmp: model identity is case-sensitive in MiniQuake.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `findIndex`.
namedynamic—Stable name that identifies the requested object or option.

View source

get

function get(registry, name)

Implements the `get` operation for `miniquake.model_registry` (get).

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `get`.
namedynamic—Stable name that identifies the requested object or option.

View source

loadBytes

function loadBytes(registry, name, data)

Loads bytes for `miniquake.model_registry`.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `loadBytes`.
namedynamic—Stable name that identifies the requested object or option.
datadynamic—Input data consumed by the operation.

View source

MOD_ALIAS

const MOD_ALIAS = 2

Defines the mod alias value used by `miniquake.model_registry`.

View source

MOD_BRUSH

const MOD_BRUSH = 0

Defines the mod brush value used by `miniquake.model_registry`.

View source

Mod_ClearAll

function Mod_ClearAll(registry)

Mirror Quake's Mod_ClearAll routine and its observable state changes.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `Mod_ClearAll`.

View source

Mod_Extradata

function Mod_Extradata(registry, filesystem, index)

Mirror Quake's Mod_Extradata routine and its observable state changes.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `Mod_Extradata`.
filesystemdynamic—The filesystem input consumed by `Mod_Extradata`.
indexdynamic—Zero-based index of the requested entry.

View source

Mod_FindName

function Mod_FindName(registry, name)

Mirror Quake's Mod_FindName routine and its observable state changes.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `Mod_FindName`.
namedynamic—Stable name that identifies the requested object or option.

View source

Mod_ForName

function Mod_ForName(registry, filesystem, name, crash)

Mirror Quake's Mod_ForName routine and its observable state changes.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `Mod_ForName`.
filesystemdynamic—The filesystem input consumed by `Mod_ForName`.
namedynamic—Stable name that identifies the requested object or option.
crashdynamic—The crash input consumed by `Mod_ForName`.

View source

Mod_Init

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.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `Mod_Init`.
cvarsdynamic—The cvars input consumed by `Mod_Init`.

View source

Mod_LoadModel

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].

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `Mod_LoadModel`.
filesystemdynamic—The filesystem input consumed by `Mod_LoadModel`.
indexdynamic—Zero-based index of the requested entry.
crashdynamic—The crash input consumed by `Mod_LoadModel`.

View source

Mod_Print

function Mod_Print(registry)

Mirror Quake's Mod_Print routine and its observable state changes.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `Mod_Print`.

View source

MOD_SPRITE

const MOD_SPRITE = 1

Defines the mod sprite value used by `miniquake.model_registry`.

View source

Mod_TouchModel

function Mod_TouchModel(registry, name)

Mirror Quake's Mod_TouchModel routine and its observable state changes.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `Mod_TouchModel`.
namedynamic—Stable name that identifies the requested object or option.

View source

MOD_UNKNOWN

const MOD_UNKNOWN = -1

Defines the mod unknown value used by `miniquake.model_registry`.

View source

modelBounds

function modelBounds(registry, name)

Implements the `modelBounds` operation for `miniquake.model_registry` (model bounds).

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `modelBounds`.
namedynamic—Stable name that identifies the requested object or option.

View source

modelCommandNeverExists

function modelCommandNeverExists(name)

Report whether model command never exists holds for the active state.

ParameterTypeDefaultDescription
namedynamic—Stable name that identifies the requested object or option.

View source

modelRadius

function modelRadius(registry, name)

Implements the `modelRadius` operation for `miniquake.model_registry` (model radius).

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `modelRadius`.
namedynamic—Stable name that identifies the requested object or option.

View source

modelType

function modelType(registry, name)

Return model type derived from the active module state.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `modelType`.
namedynamic—Stable name that identifies the requested object or option.

View source

register

function register(registry, name, model)

Compatibility helper retained for existing callers.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `register`.
namedynamic—Stable name that identifies the requested object or option.
modeldynamic—Model resource processed by the operation.

View source

registerBrushSubmodels

function registerBrushSubmodels(registry, map)

Update subsystem configuration for register brush submodels.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `registerBrushSubmodels`.
mapdynamic—The map input consumed by `registerBrushSubmodels`.

View source

registerTyped

function registerTyped(registry, name, model, type)

Update subsystem configuration for register typed.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `registerTyped`.
namedynamic—Stable name that identifies the requested object or option.
modeldynamic—Model resource processed by the operation.
typedynamic—The type input consumed by `registerTyped`.

View source