MiniQuake2

src/miniquake2/runtime/play_session.ml

Provides miniquake2 runtime play session facilities for this project.

Package
miniquake2.runtime.play_session
Reachable
Yes

Imports

Declarations

changeMapCore

function changeMapCore(session, mapName, entityText, collision)

Performs the changeMapCore operation for the miniquake2 runtime play session module.

ParameterTypeDefaultDescription
sessiondynamic—session value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.
entityTextdynamic—entityText value consumed by this operation.
collisiondynamic—collision value consumed by this operation.

View source

changeMapRetail

function changeMapRetail(session, baseDirectory, mapName)

Performs the changeMapRetail operation for the miniquake2 runtime play session module.

ParameterTypeDefaultDescription
sessiondynamic—session value consumed by this operation.
baseDirectorydynamic—baseDirectory value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.

View source

createCore

function createCore(mapName, entityText, collision, userInfo)

Creates core for the miniquake2 runtime play session module.

ParameterTypeDefaultDescription
mapNamedynamic—mapName value consumed by this operation.
entityTextdynamic—entityText value consumed by this operation.
collisiondynamic—collision value consumed by this operation.
userInfodynamic—userInfo value consumed by this operation.

View source

createCoreAt

function createCoreAt(mapName, entityText, collision, spawnPoint, userInfo)

Create core at.

ParameterTypeDefaultDescription
mapNamedynamic—mapName value consumed by this operation.
entityTextdynamic—entityText value consumed by this operation.
collisiondynamic—collision value consumed by this operation.
spawnPointdynamic—spawnPoint value consumed by this operation.
userInfodynamic—userInfo value consumed by this operation.

View source

createCoreAtSkill

function createCoreAtSkill(mapName, entityText, collision, spawnPoint, userInfo, skill)

Creates core at skill for the miniquake2 runtime play session module.

ParameterTypeDefaultDescription
mapNamedynamic—mapName value consumed by this operation.
entityTextdynamic—entityText value consumed by this operation.
collisiondynamic—collision value consumed by this operation.
spawnPointdynamic—spawnPoint value consumed by this operation.
userInfodynamic—userInfo value consumed by this operation.
skilldynamic—skill value consumed by this operation.

View source

createRetail

function createRetail(baseDirectory, mapName, userInfo)

Creates retail for the miniquake2 runtime play session module.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.
userInfodynamic—userInfo value consumed by this operation.

View source

createRetailAt

function createRetailAt(baseDirectory, mapName, spawnPoint, userInfo)

Create retail at.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.
spawnPointdynamic—spawnPoint value consumed by this operation.
userInfodynamic—userInfo value consumed by this operation.

View source

createRetailAtSkill

function createRetailAtSkill(baseDirectory, mapName, spawnPoint, userInfo, skill)

Creates retail at skill for the miniquake2 runtime play session module.

ParameterTypeDefaultDescription
baseDirectorydynamic—baseDirectory value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.
spawnPointdynamic—spawnPoint value consumed by this operation.
userInfodynamic—userInfo value consumed by this operation.
skilldynamic—skill value consumed by this operation.

View source

pendingUserCmds

function pendingUserCmds(session)

Report whether pending user cmds.

ParameterTypeDefaultDescription
sessiondynamic—session value consumed by this operation.

View source

playPredictionPointContents

function playPredictionPointContents(point)

Play prediction point contents.

ParameterTypeDefaultDescription
pointdynamic—point value consumed by this operation.

View source

playPredictionSession

playPredictionSession

Stores module-wide play prediction session state for the miniquake2 runtime play session module.

View source

playPredictionTrace

function playPredictionTrace(start, mins, maxs, finish)

Play prediction trace.

ParameterTypeDefaultDescription
startdynamic—start value consumed by this operation.
minsdynamic—mins value consumed by this operation.
maxsdynamic—maxs value consumed by this operation.
finishdynamic—finish value consumed by this operation.

View source

miniquake2.runtime.play_session.PlaySession struct

predictLocal

function predictLocal(session, previewCommand)

Replay the original 64-entry command ring plus a side-effect-free command for the unsent portion of the current render interval. The listen product uses the authoritative collision bridge, including moving inline brushes.

ParameterTypeDefaultDescription
sessiondynamic—session value consumed by this operation.
previewCommanddynamic—previewCommand value consumed by this operation.

View source

queueUserCmd

function queueUserCmd(session, command)

Queue user cmd.

ParameterTypeDefaultDescription
sessiondynamic—session value consumed by this operation.
commanddynamic—command value consumed by this operation.

View source

runUntilActive

function runUntilActive(session, maximumSteps)

Report whether run until active.

ParameterTypeDefaultDescription
sessiondynamic—session value consumed by this operation.
maximumStepsdynamic—maximumSteps value consumed by this operation.

View source

setUserCmd

function setUserCmd(session, command)

Set user cmd.

ParameterTypeDefaultDescription
sessiondynamic—session value consumed by this operation.
commanddynamic—command value consumed by this operation.

View source

setUserInfo

function setUserInfo(session, userInfo)

Set user info.

ParameterTypeDefaultDescription
sessiondynamic—session value consumed by this operation.
userInfodynamic—userInfo value consumed by this operation.

View source

shutdown

function shutdown(session)

Performs the shutdown operation for the miniquake2 runtime play session module.

ParameterTypeDefaultDescription
sessiondynamic—session value consumed by this operation.

View source

signonComplete

function signonComplete(session)

Return the signon complete value.

ParameterTypeDefaultDescription
sessiondynamic—session value consumed by this operation.

View source

step

function step(session)

Performs the step operation for the miniquake2 runtime play session module.

ParameterTypeDefaultDescription
sessiondynamic—session value consumed by this operation.

View source

miniquake2.runtime.play_session.StepResult struct

takeFrame

function takeFrame(session)

Consume frame.

ParameterTypeDefaultDescription
sessiondynamic—session value consumed by this operation.

View source

takeLatestFrame

function takeLatestFrame(session)

Consume latest frame.

ParameterTypeDefaultDescription
sessiondynamic—session value consumed by this operation.

View source

wrap

function wrap(server, userInfo)

Wrap state.

ParameterTypeDefaultDescription
serverdynamic—server value consumed by this operation.
userInfodynamic—userInfo value consumed by this operation.

View source