MiniQuake2

src/miniquake2/client/layout.ml

Provides miniquake2 client layout facilities for this project.

Package
miniquake2.client.layout
Reachable
Yes

Imports

Declarations

draw

function draw(commands, exports)

Draws draw through the miniquake2 client layout rendering path.

ParameterTypeDefaultDescription
commandsdynamic—commands value consumed by this operation.
exportsdynamic—exports value consumed by this operation.

View source

drawCount

function drawCount(commands, commandCount, exports)

Draw count.

ParameterTypeDefaultDescription
commandsdynamic—commands value consumed by this operation.
commandCountdynamic—Number of command to process.
exportsdynamic—exports value consumed by this operation.

View source

drawNumber

function drawNumber(exports, x, y, value, width, color)

Draw number.

ParameterTypeDefaultDescription
exportsdynamic—exports value consumed by this operation.
xdynamic—Horizontal coordinate used by the operation.
ydynamic—Vertical coordinate used by the operation.
valuedynamic—Value consumed or transformed by the operation.
widthdynamic—Width in the coordinate or storage units used by the caller.
colordynamic—color value consumed by this operation.

View source

drawText

function drawText(exports, x, y, text, style)

Draws text through the miniquake2 client layout rendering path.

ParameterTypeDefaultDescription
exportsdynamic—exports value consumed by this operation.
xdynamic—Horizontal coordinate used by the operation.
ydynamic—Vertical coordinate used by the operation.
textdynamic—Text consumed by the operation.
styledynamic—style value consumed by this operation.

View source

fixedPlayerName

function fixedPlayerName(name)

Return the fixed player name.

ParameterTypeDefaultDescription
namedynamic—Name of the affected item.

View source

integer

function integer(token, operation)

Return the integer value.

ParameterTypeDefaultDescription
tokendynamic—token value consumed by this operation.
operationdynamic—operation value consumed by this operation.

View source

miniquake2.client.layout.LayoutCommand struct

padLeft3

function padLeft3(value)

Pad left 3.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

parse

function parse(layout, stats, configStrings, screenWidth, screenHeight)

Parses parse for the miniquake2 client layout workflow.

ParameterTypeDefaultDescription
layoutdynamic—layout value consumed by this operation.
statsdynamic—stats value consumed by this operation.
configStringsdynamic—configStrings value consumed by this operation.
screenWidthdynamic—screenWidth value consumed by this operation.
screenHeightdynamic—screenHeight value consumed by this operation.

View source

parseAtFrame

function parseAtFrame(layout, stats, configStrings, screenWidth, screenHeight, serverFrame, playerNumber)

Parse at frame.

ParameterTypeDefaultDescription
layoutdynamic—layout value consumed by this operation.
statsdynamic—stats value consumed by this operation.
configStringsdynamic—configStrings value consumed by this operation.
screenWidthdynamic—screenWidth value consumed by this operation.
screenHeightdynamic—screenHeight value consumed by this operation.
serverFramedynamic—serverFrame value consumed by this operation.
playerNumberdynamic—playerNumber value consumed by this operation.

View source

parseTokens

function parseTokens(tokens, stats, configStrings, screenWidth, screenHeight)

Parse tokens.

ParameterTypeDefaultDescription
tokensdynamic—tokens value consumed by this operation.
statsdynamic—stats value consumed by this operation.
configStringsdynamic—configStrings value consumed by this operation.
screenWidthdynamic—screenWidth value consumed by this operation.
screenHeightdynamic—screenHeight value consumed by this operation.

View source

parseTokensContext

function parseTokensContext(tokens, stats, configStrings, screenWidth, screenHeight, serverFrame, playerNumber)

Parse tokens context.

ParameterTypeDefaultDescription
tokensdynamic—tokens value consumed by this operation.
statsdynamic—stats value consumed by this operation.
configStringsdynamic—configStrings value consumed by this operation.
screenWidthdynamic—screenWidth value consumed by this operation.
screenHeightdynamic—screenHeight value consumed by this operation.
serverFramedynamic—serverFrame value consumed by this operation.
playerNumberdynamic—playerNumber value consumed by this operation.

View source

parseTokensContextInto

function parseTokensContextInto(commands, tokens, stats, configStrings, screenWidth, screenHeight, serverFrame, playerNumber)

Populate the parse tokens context destination.

ParameterTypeDefaultDescription
commandsdynamic—commands value consumed by this operation.
tokensdynamic—tokens value consumed by this operation.
statsdynamic—stats value consumed by this operation.
configStringsdynamic—configStrings value consumed by this operation.
screenWidthdynamic—screenWidth value consumed by this operation.
screenHeightdynamic—screenHeight value consumed by this operation.
serverFramedynamic—serverFrame value consumed by this operation.
playerNumberdynamic—playerNumber value consumed by this operation.

View source

playerIdentity

function playerIdentity(configStrings, playerIndex)

Return the player identity value.

ParameterTypeDefaultDescription
configStringsdynamic—configStrings value consumed by this operation.
playerIndexdynamic—Zero-based index of player.

View source

requireToken

function requireToken(tokens, index, operation)

Require token.

ParameterTypeDefaultDescription
tokensdynamic—tokens value consumed by this operation.
indexdynamic—Zero-based index of the affected item.
operationdynamic—operation value consumed by this operation.

View source

stat

function stat(stats, index)

Return the stat value.

ParameterTypeDefaultDescription
statsdynamic—stats value consumed by this operation.
indexdynamic—Zero-based index of the affected item.

View source

tokenize

function tokenize(layout)

Return the tokenize value.

ParameterTypeDefaultDescription
layoutdynamic—layout value consumed by this operation.

View source