MiniQuake

src/miniquake/server_state.ml

Package
miniquake.server_state
Reachable
No

Imports

Declarations

create

function create(maxClients)

Implements the `create` operation for `miniquake.server_state` (create).

ParameterTypeDefaultDescription
maxClientsdynamic—The max clients input consumed by `create`.

View source

frame

function frame(state, deltaTime)

Implements the `frame` operation for `miniquake.server_state` (frame).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.server_state` state used by `frame`.
deltaTimedynamic—Time value used by the operation.

View source

shutdown

function shutdown(state)

Implements the `shutdown` operation for `miniquake.server_state` (shutdown).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.server_state` state used by `shutdown`.

View source

spawn

function spawn(state, mapName)

Implements the `spawn` operation for `miniquake.server_state` (spawn).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.server_state` state used by `spawn`.
mapNamedynamic—Name of the map to load or inspect.

View source