MiniQuake2

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.

ParameterTypeDefaultDescription
resultdynamic—Result object populated or inspected by the operation.
importsdynamic—imports value consumed by this operation.
pathdynamic—Path of the file or directory used by the operation.

View source

cacheModel

function cacheModel(result, imports, path)

Cache model.

ParameterTypeDefaultDescription
resultdynamic—Result object populated or inspected by the operation.
importsdynamic—imports value consumed by this operation.
pathdynamic—Path of the file or directory used by the operation.

View source

cacheSound

function cacheSound(result, imports, path)

Cache sound.

ParameterTypeDefaultDescription
resultdynamic—Result object populated or inspected by the operation.
importsdynamic—imports value consumed by this operation.
pathdynamic—Path of the file or directory used by the operation.

View source

cacheTokens

function cacheTokens(result, imports, value, itemName)

Cache tokens.

ParameterTypeDefaultDescription
resultdynamic—Result object populated or inspected by the operation.
importsdynamic—imports value consumed by this operation.
valuedynamic—Value consumed or transformed by the operation.
itemNamedynamic—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.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
pickupNamedynamic—pickupName value consumed by this operation.

View source

precacheInto

function precacheInto(registry, item, imports, result, depth)

Populate the precache destination.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
itemdynamic—item value consumed by this operation.
importsdynamic—imports value consumed by this operation.
resultdynamic—Result object populated or inspected by the operation.
depthdynamic—depth value consumed by this operation.

View source

PrecacheItem

function PrecacheItem(registry, item, imports)

Return the precache item value.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
itemdynamic—item value consumed by this operation.
importsdynamic—imports value consumed by this operation.

View source

requireImportFunction

function requireImportFunction(imports, fieldValue, fieldName)

Require import function.

ParameterTypeDefaultDescription
importsdynamic—imports value consumed by this operation.
fieldValuedynamic—fieldValue value consumed by this operation.
fieldNamedynamic—fieldName value consumed by this operation.

View source