Files
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.
| Parameter | Type | Default | Description |
|---|
session | dynamic | — | session value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
entityText | dynamic | — | entityText value consumed by this operation. |
collision | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
session | dynamic | — | session value consumed by this operation. |
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
View source
# createCore
function createCore(mapName, entityText, collision, userInfo)
Creates core for the miniquake2 runtime play session module.
| Parameter | Type | Default | Description |
|---|
mapName | dynamic | — | mapName value consumed by this operation. |
entityText | dynamic | — | entityText value consumed by this operation. |
collision | dynamic | — | collision value consumed by this operation. |
userInfo | dynamic | — | userInfo value consumed by this operation. |
View source
# createCoreAt
function createCoreAt(mapName, entityText, collision, spawnPoint, userInfo)
Create core at.
| Parameter | Type | Default | Description |
|---|
mapName | dynamic | — | mapName value consumed by this operation. |
entityText | dynamic | — | entityText value consumed by this operation. |
collision | dynamic | — | collision value consumed by this operation. |
spawnPoint | dynamic | — | spawnPoint value consumed by this operation. |
userInfo | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
mapName | dynamic | — | mapName value consumed by this operation. |
entityText | dynamic | — | entityText value consumed by this operation. |
collision | dynamic | — | collision value consumed by this operation. |
spawnPoint | dynamic | — | spawnPoint value consumed by this operation. |
userInfo | dynamic | — | userInfo value consumed by this operation. |
skill | dynamic | — | skill value consumed by this operation. |
View source
# createRetail
function createRetail(baseDirectory, mapName, userInfo)
Creates retail for the miniquake2 runtime play session module.
| Parameter | Type | Default | Description |
|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
userInfo | dynamic | — | userInfo value consumed by this operation. |
View source
# createRetailAt
function createRetailAt(baseDirectory, mapName, spawnPoint, userInfo)
Create retail at.
| Parameter | Type | Default | Description |
|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
spawnPoint | dynamic | — | spawnPoint value consumed by this operation. |
userInfo | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
baseDirectory | dynamic | — | baseDirectory value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
spawnPoint | dynamic | — | spawnPoint value consumed by this operation. |
userInfo | dynamic | — | userInfo value consumed by this operation. |
skill | dynamic | — | skill value consumed by this operation. |
View source
# pendingUserCmds
function pendingUserCmds(session)
Report whether pending user cmds.
| Parameter | Type | Default | Description |
|---|
session | dynamic | — | session value consumed by this operation. |
View source
# playPredictionPointContents
function playPredictionPointContents(point)
Play prediction point contents.
| Parameter | Type | Default | Description |
|---|
point | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
start | dynamic | — | start value consumed by this operation. |
mins | dynamic | — | mins value consumed by this operation. |
maxs | dynamic | — | maxs value consumed by this operation. |
finish | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
session | dynamic | — | session value consumed by this operation. |
previewCommand | dynamic | — | previewCommand value consumed by this operation. |
View source
# queueUserCmd
function queueUserCmd(session, command)
Queue user cmd.
| Parameter | Type | Default | Description |
|---|
session | dynamic | — | session value consumed by this operation. |
command | dynamic | — | command value consumed by this operation. |
View source
# runUntilActive
function runUntilActive(session, maximumSteps)
Report whether run until active.
| Parameter | Type | Default | Description |
|---|
session | dynamic | — | session value consumed by this operation. |
maximumSteps | dynamic | — | maximumSteps value consumed by this operation. |
View source
# setUserCmd
function setUserCmd(session, command)
Set user cmd.
| Parameter | Type | Default | Description |
|---|
session | dynamic | — | session value consumed by this operation. |
command | dynamic | — | command value consumed by this operation. |
View source
# setUserInfo
function setUserInfo(session, userInfo)
Set user info.
| Parameter | Type | Default | Description |
|---|
session | dynamic | — | session value consumed by this operation. |
userInfo | dynamic | — | userInfo value consumed by this operation. |
View source
# shutdown
function shutdown(session)
Performs the shutdown operation for the miniquake2 runtime play session module.
| Parameter | Type | Default | Description |
|---|
session | dynamic | — | session value consumed by this operation. |
View source
# signonComplete
function signonComplete(session)
Return the signon complete value.
| Parameter | Type | Default | Description |
|---|
session | dynamic | — | session value consumed by this operation. |
View source
# step
function step(session)
Performs the step operation for the miniquake2 runtime play session module.
| Parameter | Type | Default | Description |
|---|
session | dynamic | — | session value consumed by this operation. |
View source
miniquake2.runtime.play_session.StepResult struct
# takeFrame
function takeFrame(session)
Consume frame.
| Parameter | Type | Default | Description |
|---|
session | dynamic | — | session value consumed by this operation. |
View source
# takeLatestFrame
function takeLatestFrame(session)
Consume latest frame.
| Parameter | Type | Default | Description |
|---|
session | dynamic | — | session value consumed by this operation. |
View source
# wrap
function wrap(server, userInfo)
Wrap state.
| Parameter | Type | Default | Description |
|---|
server | dynamic | — | server value consumed by this operation. |
userInfo | dynamic | — | userInfo value consumed by this operation. |
View source