MiniQuake2

src/miniquake2/game/player/transition.ml

Provides miniquake2 game player transition facilities for this project.

Package
miniquake2.game.player.transition
Reachable
Yes

Imports

Declarations

capture

function capture(playerContext, runtime, playerIndex)

Capture state.

ParameterTypeDefaultDescription
playerContextdynamic—playerContext value consumed by this operation.
runtimedynamic—runtime value consumed by this operation.
playerIndexdynamic—Zero-based index of player.

View source

checkedItem

function checkedItem(registry, index, label)

Return the checked item value.

ParameterTypeDefaultDescription
registrydynamic—registry value consumed by this operation.
indexdynamic—Zero-based index of the affected item.
labeldynamic—label value consumed by this operation.

View source

copyCounts

function copyCounts(counts)

Copy counts data.

ParameterTypeDefaultDescription
countsdynamic—counts value consumed by this operation.

View source

itemIndex

function itemIndex(item)

Return the item index.

ParameterTypeDefaultDescription
itemdynamic—item value consumed by this operation.

View source

PERSISTENT_FLAG_MASK

const PERSISTENT_FLAG_MASK = transitionconstants.FL_GODMODE | transitionconstants.FL_NOTARGET | transitionconstants.FL_POWER_ARMOR

Defines the persistent flag mask constant used by the miniquake2 game player transition module.

View source

miniquake2.game.player.transition.PlayerLevelHandover struct

restore

function restore(playerContext, runtime, playerIndex, handover)

Restore state.

ParameterTypeDefaultDescription
playerContextdynamic—playerContext value consumed by this operation.
runtimedynamic—runtime value consumed by this operation.
playerIndexdynamic—Zero-based index of player.
handoverdynamic—handover value consumed by this operation.

View source