Files
src/miniquake2/game/gameplay/precache.ml
Provides miniquake2 game gameplay precache facilities for this project.
- Package
miniquake2.game.gameplay.precache- Reachable
- Yes
Imports
Declarations
# cacheImage
function cacheImage(result, imports, path)
Cache image.
| Parameter | Type | Default | Description |
|---|
result | dynamic | — | Result object populated or inspected by the operation. |
imports | dynamic | — | imports value consumed by this operation. |
path | dynamic | — | Path of the file or directory used by the operation. |
View source
# cacheModel
function cacheModel(result, imports, path)
Cache model.
| Parameter | Type | Default | Description |
|---|
result | dynamic | — | Result object populated or inspected by the operation. |
imports | dynamic | — | imports value consumed by this operation. |
path | dynamic | — | Path of the file or directory used by the operation. |
View source
# cacheSound
function cacheSound(result, imports, path)
Cache sound.
| Parameter | Type | Default | Description |
|---|
result | dynamic | — | Result object populated or inspected by the operation. |
imports | dynamic | — | imports value consumed by this operation. |
path | dynamic | — | Path of the file or directory used by the operation. |
View source
# cacheTokens
function cacheTokens(result, imports, value, itemName)
Cache tokens.
| Parameter | Type | Default | Description |
|---|
result | dynamic | — | Result object populated or inspected by the operation. |
imports | dynamic | — | imports value consumed by this operation. |
value | dynamic | — | Value consumed or transformed by the operation. |
itemName | dynamic | — | itemName value consumed by this operation. |
View source
# findByPickupName
function findByPickupName(registry, pickupName)
Finds by pickup name used by the miniquake2 game gameplay precache module.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
pickupName | dynamic | — | pickupName value consumed by this operation. |
View source
# precacheInto
function precacheInto(registry, item, imports, result, depth)
Populate the precache destination.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
item | dynamic | — | item value consumed by this operation. |
imports | dynamic | — | imports value consumed by this operation. |
result | dynamic | — | Result object populated or inspected by the operation. |
depth | dynamic | — | depth value consumed by this operation. |
View source
# PrecacheItem
function PrecacheItem(registry, item, imports)
Return the precache item value.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
item | dynamic | — | item value consumed by this operation. |
imports | dynamic | — | imports value consumed by this operation. |
View source
# requireImportFunction
function requireImportFunction(imports, fieldValue, fieldName)
Require import function.
| Parameter | Type | Default | Description |
|---|
imports | dynamic | — | imports value consumed by this operation. |
fieldValue | dynamic | — | fieldValue value consumed by this operation. |
fieldName | dynamic | — | fieldName value consumed by this operation. |
View source