MiniQuake2

src/miniquake2/game/gameplay/registry.ml

Provides miniquake2 game gameplay registry facilities for this project.

Package
miniquake2.game.gameplay.registry
Reachable
Yes

Imports

Declarations

ammo

function ammo(index, className, pickupName, quantity, tag, worldModel, icon)

Return the ammo value.

ParameterTypeDefaultDescription
indexdynamic—Zero-based index of the affected item.
classNamedynamic—className value consumed by this operation.
pickupNamedynamic—pickupName value consumed by this operation.
quantitydynamic—quantity value consumed by this operation.
tagdynamic—tag value consumed by this operation.
worldModeldynamic—worldModel value consumed by this operation.
icondynamic—icon value consumed by this operation.

View source

armorData

function armorData(baseCount, maxCount, normalProtection, energyProtection)

Return the armor data value.

ParameterTypeDefaultDescription
baseCountdynamic—Number of base to process.
maxCountdynamic—Number of max to process.
normalProtectiondynamic—normalProtection value consumed by this operation.
energyProtectiondynamic—energyProtection value consumed by this operation.

View source

baseq2Registry

function baseq2Registry()

Return the baseq 2 registry value.

View source

defaultRegistry

function defaultRegistry()

Performs the defaultRegistry operation for the miniquake2 game gameplay registry module.

View source

frames

function frames(activateLast, fireLast, idleLast, deactivateLast, pauseFrames, fireFrames)

Return the frames value.

ParameterTypeDefaultDescription
activateLastdynamic—activateLast value consumed by this operation.
fireLastdynamic—fireLast value consumed by this operation.
idleLastdynamic—idleLast value consumed by this operation.
deactivateLastdynamic—deactivateLast value consumed by this operation.
pauseFramesdynamic—pauseFrames value consumed by this operation.
fireFramesdynamic—fireFrames value consumed by this operation.

View source

grenades

function grenades(index)

Return the grenades value.

ParameterTypeDefaultDescription
indexdynamic—Zero-based index of the affected item.

View source

healthData

function healthData(count, style)

Return the health data value.

ParameterTypeDefaultDescription
countdynamic—Number of items or units to process.
styledynamic—style value consumed by this operation.

View source

inventorySlots

function inventorySlots(registry)

Return the inventory slots value.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.

View source

simpleData

function simpleData(kind, duration)

Return the simple data value.

ParameterTypeDefaultDescription
kinddynamic—kind value consumed by this operation.
durationdynamic—duration value consumed by this operation.

View source

stockItem

function stockItem(index, className, pickup, use, drop, pickupSound, worldModel, icon, pickupName, quantity, flags, tag, precaches, ruleData)

Return the stock item value.

ParameterTypeDefaultDescription
indexdynamic—Zero-based index of the affected item.
classNamedynamic—className value consumed by this operation.
pickupdynamic—pickup value consumed by this operation.
usedynamic—use value consumed by this operation.
dropdynamic—drop value consumed by this operation.
pickupSounddynamic—pickupSound value consumed by this operation.
worldModeldynamic—worldModel value consumed by this operation.
icondynamic—icon value consumed by this operation.
pickupNamedynamic—pickupName value consumed by this operation.
quantitydynamic—quantity value consumed by this operation.
flagsdynamic—Bit flags controlling the operation.
tagdynamic—tag value consumed by this operation.
precachesdynamic—precaches value consumed by this operation.
ruleDatadynamic—ruleData value consumed by this operation.

View source

stockRegistry

function stockRegistry()

Additive complete stock registry. defaultRegistry deliberately remains the original weapon/ammo subset so its established indices and golden tests are stable until the integration layer opts into this registry.

View source

validate

function validate(registry)

Validates validate for the miniquake2 game gameplay registry workflow.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.

View source

weapon

function weapon(index, className, pickupName, quantity, ammo, weaponModel, worldModel, viewModel, icon, precaches, frameContract)

Return the weapon value.

ParameterTypeDefaultDescription
indexdynamic—Zero-based index of the affected item.
classNamedynamic—className value consumed by this operation.
pickupNamedynamic—pickupName value consumed by this operation.
quantitydynamic—quantity value consumed by this operation.
ammodynamic—ammo value consumed by this operation.
weaponModeldynamic—weaponModel value consumed by this operation.
worldModeldynamic—worldModel value consumed by this operation.
viewModeldynamic—viewModel value consumed by this operation.
icondynamic—icon value consumed by this operation.
precachesdynamic—precaches value consumed by this operation.
frameContractdynamic—frameContract value consumed by this operation.

View source