Provides miniquake2 game player transition facilities for this project.
# capture
function capture(playerContext, runtime, playerIndex)
Capture state.
| Parameter | Type | Default | Description |
|---|
playerContext | dynamic | — | playerContext value consumed by this operation. |
runtime | dynamic | — | runtime value consumed by this operation. |
playerIndex | dynamic | — | Zero-based index of player. |
View source
# checkedItem
function checkedItem(registry, index, label)
Return the checked item value.
| Parameter | Type | Default | Description |
|---|
registry | dynamic | — | registry value consumed by this operation. |
index | dynamic | — | Zero-based index of the affected item. |
label | dynamic | — | label 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
# restore
function restore(playerContext, runtime, playerIndex, handover)
Restore state.
| Parameter | Type | Default | Description |
|---|
playerContext | dynamic | — | playerContext value consumed by this operation. |
runtime | dynamic | — | runtime value consumed by this operation. |
playerIndex | dynamic | — | Zero-based index of player. |
handover | dynamic | — | handover value consumed by this operation. |
View source