Files
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.
| Parameter | Type | Default | Description |
|---|
index | dynamic | — | Zero-based index of the affected item. |
className | dynamic | — | className value consumed by this operation. |
pickupName | dynamic | — | pickupName value consumed by this operation. |
quantity | dynamic | — | quantity value consumed by this operation. |
tag | dynamic | — | tag value consumed by this operation. |
worldModel | dynamic | — | worldModel value consumed by this operation. |
icon | dynamic | — | icon value consumed by this operation. |
View source
# armorData
function armorData(baseCount, maxCount, normalProtection, energyProtection)
Return the armor data value.
| Parameter | Type | Default | Description |
|---|
baseCount | dynamic | — | Number of base to process. |
maxCount | dynamic | — | Number of max to process. |
normalProtection | dynamic | — | normalProtection value consumed by this operation. |
energyProtection | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
activateLast | dynamic | — | activateLast value consumed by this operation. |
fireLast | dynamic | — | fireLast value consumed by this operation. |
idleLast | dynamic | — | idleLast value consumed by this operation. |
deactivateLast | dynamic | — | deactivateLast value consumed by this operation. |
pauseFrames | dynamic | — | pauseFrames value consumed by this operation. |
fireFrames | dynamic | — | fireFrames value consumed by this operation. |
View source
# grenades
function grenades(index)
Return the grenades value.
| Parameter | Type | Default | Description |
|---|
index | dynamic | — | Zero-based index of the affected item. |
View source
# healthData
function healthData(count, style)
Return the health data value.
| Parameter | Type | Default | Description |
|---|
count | dynamic | — | Number of items or units to process. |
style | dynamic | — | style value consumed by this operation. |
View source
# inventorySlots
function inventorySlots(registry)
Return the inventory slots value.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
View source
# simpleData
function simpleData(kind, duration)
Return the simple data value.
| Parameter | Type | Default | Description |
|---|
kind | dynamic | — | kind value consumed by this operation. |
duration | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
index | dynamic | — | Zero-based index of the affected item. |
className | dynamic | — | className value consumed by this operation. |
pickup | dynamic | — | pickup value consumed by this operation. |
use | dynamic | — | use value consumed by this operation. |
drop | dynamic | — | drop value consumed by this operation. |
pickupSound | dynamic | — | pickupSound value consumed by this operation. |
worldModel | dynamic | — | worldModel value consumed by this operation. |
icon | dynamic | — | icon value consumed by this operation. |
pickupName | dynamic | — | pickupName value consumed by this operation. |
quantity | dynamic | — | quantity value consumed by this operation. |
flags | dynamic | — | Bit flags controlling the operation. |
tag | dynamic | — | tag value consumed by this operation. |
precaches | dynamic | — | precaches value consumed by this operation. |
ruleData | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
index | dynamic | — | Zero-based index of the affected item. |
className | dynamic | — | className value consumed by this operation. |
pickupName | dynamic | — | pickupName value consumed by this operation. |
quantity | dynamic | — | quantity value consumed by this operation. |
ammo | dynamic | — | ammo value consumed by this operation. |
weaponModel | dynamic | — | weaponModel value consumed by this operation. |
worldModel | dynamic | — | worldModel value consumed by this operation. |
viewModel | dynamic | — | viewModel value consumed by this operation. |
icon | dynamic | — | icon value consumed by this operation. |
precaches | dynamic | — | precaches value consumed by this operation. |
frameContract | dynamic | — | frameContract value consumed by this operation. |
View source