Files
src/miniquake2/runtime/product_startup.ml
Provides miniquake2 runtime product startup facilities for this project.
- Package
miniquake2.runtime.product_startup- Reachable
- Yes
Imports
Declarations
# activate
function activate(lifecycle, mapName)
Performs the activate operation for the miniquake2 runtime product startup module.
| Parameter | Type | Default | Description |
|---|
lifecycle | dynamic | — | lifecycle value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
View source
# addBrowserEntry
function addBrowserEntry(browser, endpoint, description, now)
Add browser entry.
| Parameter | Type | Default | Description |
|---|
browser | dynamic | — | browser value consumed by this operation. |
endpoint | dynamic | — | endpoint value consumed by this operation. |
description | dynamic | — | description value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
View source
# beginConnect
function beginConnect(lifecycle, endpoint)
Begin connect.
| Parameter | Type | Default | Description |
|---|
lifecycle | dynamic | — | lifecycle value consumed by this operation. |
endpoint | dynamic | — | endpoint value consumed by this operation. |
View source
# beginLocal
function beginLocal(lifecycle, mapName)
Begin local.
| Parameter | Type | Default | Description |
|---|
lifecycle | dynamic | — | lifecycle value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
View source
# BROWSER_MSEC
const BROWSER_MSEC = 1200
Defines the browser msec constant used by the miniquake2 runtime product startup module.
View source
# browserEntryCount
function browserEntryCount(browser)
Return the browser entry count.
| Parameter | Type | Default | Description |
|---|
browser | dynamic | — | browser value consumed by this operation. |
View source
# closeBrowser
function closeBrowser(browser)
Close browser.
| Parameter | Type | Default | Description |
|---|
browser | dynamic | — | browser value consumed by this operation. |
View source
# closeRconTransport
function closeRconTransport(transport)
Close an outstanding main-menu RCON exchange.
| Parameter | Type | Default | Description |
|---|
transport | dynamic | — | transport value consumed by this operation. |
View source
# createBrowser
function createBrowser()
Create browser.
View source
# createLifecycle
function createLifecycle(dataRoot)
Create lifecycle.
| Parameter | Type | Default | Description |
|---|
dataRoot | dynamic | — | dataRoot value consumed by this operation. |
View source
# createRconTransport
function createRconTransport()
Create a disconnected-console RCON transport without retaining a socket.
View source
# decodePreferences
function decodePreferences(text)
Decode preferences.
| Parameter | Type | Default | Description |
|---|
text | dynamic | — | Text consumed by the operation. |
View source
# DEFAULT_PORT
const DEFAULT_PORT = 27910
Defines the default port constant used by the miniquake2 runtime product startup module.
View source
# defaultDownloadPolicy
function defaultDownloadPolicy()
Return the default download policy value.
View source
# defaultPlayerProfile
function defaultPlayerProfile()
Return the default player profile value.
View source
# defaultPreferences
function defaultPreferences()
Return the default preferences value.
View source
# defaultServerOptions
function defaultServerOptions()
Return the default server options value.
View source
# disconnect
function disconnect(lifecycle)
Return the disconnect value.
| Parameter | Type | Default | Description |
|---|
lifecycle | dynamic | — | lifecycle value consumed by this operation. |
View source
# discoverRetailRoot
function discoverRetailRoot(selectionPath, candidates)
Discover retail root.
| Parameter | Type | Default | Description |
|---|
selectionPath | dynamic | — | Path associated with selection. |
candidates | dynamic | — | candidates value consumed by this operation. |
View source
miniquake2.runtime.product_startup.DownloadPolicy struct
# encodePreferences
function encodePreferences(preferences)
Encode preferences.
| Parameter | Type | Default | Description |
|---|
preferences | dynamic | — | preferences value consumed by this operation. |
View source
miniquake2.runtime.product_startup.Endpoint struct
# endpointText
function endpointText(endpoint)
Return the endpoint text value.
| Parameter | Type | Default | Description |
|---|
endpoint | dynamic | — | endpoint value consumed by this operation. |
View source
# loadPreferences
function loadPreferences(path)
Load preferences.
| Parameter | Type | Default | Description |
|---|
path | dynamic | — | Path of the file or directory used by the operation. |
View source
# loadSelectedRoot
function loadSelectedRoot(path)
Load selected root.
| Parameter | Type | Default | Description |
|---|
path | dynamic | — | Path of the file or directory used by the operation. |
View source
# MAX_BROWSER_SERVERS
const MAX_BROWSER_SERVERS = 8
Defines the max browser servers constant used by the miniquake2 runtime product startup module.
View source
miniquake2.runtime.product_startup.MultiplayerPreferences struct
# parseEndpoint
function parseEndpoint(value)
Parse endpoint.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed or transformed by the operation. |
View source
# parsePort
function parsePort(value)
Parse port.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed or transformed by the operation. |
View source
# persistSelectedRoot
function persistSelectedRoot(path, root)
Persist selected root.
| Parameter | Type | Default | Description |
|---|
path | dynamic | — | Path of the file or directory used by the operation. |
root | dynamic | — | root value consumed by this operation. |
View source
miniquake2.runtime.product_startup.PlayerProfile struct
# playerProfileValid
function playerProfileValid(profile)
Report whether player profile valid.
| Parameter | Type | Default | Description |
|---|
profile | dynamic | — | profile value consumed by this operation. |
View source
# playerUserInfo
function playerUserInfo(profile)
Return the player user info value.
| Parameter | Type | Default | Description |
|---|
profile | dynamic | — | profile value consumed by this operation. |
View source
# preferenceBool
function preferenceBool(value)
Return the preference bool value.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed or transformed by the operation. |
View source
# preferenceBoolean
function preferenceBoolean(value)
Return the preference boolean value.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed or transformed by the operation. |
View source
# preferenceInteger
function preferenceInteger(value, minimum, maximum)
Return the preference integer value.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed or transformed by the operation. |
minimum | dynamic | — | minimum value consumed by this operation. |
maximum | dynamic | — | maximum value consumed by this operation. |
View source
# preferenceLine
function preferenceLine(lines, index, prefix)
Return the preference line value.
| Parameter | Type | Default | Description |
|---|
lines | dynamic | — | lines value consumed by this operation. |
index | dynamic | — | Zero-based index of the affected item. |
prefix | dynamic | — | prefix value consumed by this operation. |
View source
# preferencesValid
function preferencesValid(preferences)
Report whether preferences valid.
| Parameter | Type | Default | Description |
|---|
preferences | dynamic | — | preferences value consumed by this operation. |
View source
# preferenceTextSafe
function preferenceTextSafe(value, maximum)
Return the preference text safe value.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed or transformed by the operation. |
maximum | dynamic | — | maximum value consumed by this operation. |
View source
miniquake2.runtime.product_startup.ProductLifecycle struct
# pumpBrowser
function pumpBrowser(browser, now)
Pump browser.
| Parameter | Type | Default | Description |
|---|
browser | dynamic | — | browser value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
View source
# pumpRcon
function pumpRcon(transport, now)
Pump matching print replies without blocking the menu presentation loop.
| Parameter | Type | Default | Description |
|---|
transport | dynamic | — | transport value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
View source
miniquake2.runtime.product_startup.RconTransport struct
# retailRootValid
function retailRootValid(root)
Report whether retail root valid.
| Parameter | Type | Default | Description |
|---|
root | dynamic | — | root value consumed by this operation. |
View source
# savePreferences
function savePreferences(path, preferences)
Save preferences.
| Parameter | Type | Default | Description |
|---|
path | dynamic | — | Path of the file or directory used by the operation. |
preferences | dynamic | — | preferences value consumed by this operation. |
View source
# sendRcon
function sendRcon(transport, endpointTextValue, password, command, now)
Send one validated connectionless RCON request from a temporary UDP socket.
| Parameter | Type | Default | Description |
|---|
transport | dynamic | — | transport value consumed by this operation. |
endpointTextValue | dynamic | — | endpointTextValue value consumed by this operation. |
password | dynamic | — | password value consumed by this operation. |
command | dynamic | — | command value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
View source
miniquake2.runtime.product_startup.ServerBrowser struct
miniquake2.runtime.product_startup.ServerEntry struct
miniquake2.runtime.product_startup.ServerOptions struct
# standardRetailCandidates
function standardRetailCandidates()
Return the standard retail candidates value.
View source
# startBrowser
function startBrowser(browser, addresses, now)
Start browser.
| Parameter | Type | Default | Description |
|---|
browser | dynamic | — | browser value consumed by this operation. |
addresses | dynamic | — | addresses value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
View source