MiniQuake2

src/miniquake2/game/player/types.ml

Provides miniquake2 game player types facilities for this project.

Package
miniquake2.game.player.types
Reachable
Yes

Imports

Declarations

connectResult

function connectResult(accepted, userInfo, rejection)

Connect result.

ParameterTypeDefaultDescription
accepteddynamic—accepted value consumed by this operation.
userInfodynamic—userInfo value consumed by this operation.
rejectiondynamic—rejection value consumed by this operation.

View source

miniquake2.game.player.types.ConnectResult struct

createContext

function createContext(imports, registry, pmoveTrace)

Create context.

ParameterTypeDefaultDescription
importsdynamic—imports value consumed by this operation.
registrydynamic—registry value consumed by this operation.
pmoveTracedynamic—pmoveTrace value consumed by this operation.

View source

createPlayer

function createPlayer(number, registry)

Create player.

ParameterTypeDefaultDescription
numberdynamic—number value consumed by this operation.
registrydynamic—registry value consumed by this operation.

View source

miniquake2.game.player.types.DeathResult struct

defaultViewSettings

function defaultViewSettings()

Return the default view settings value.

View source

miniquake2.game.player.types.FrameResult struct

miniquake2.game.player.types.PlayerContext struct

miniquake2.game.player.types.PlayerData struct

miniquake2.game.player.types.PlayerPersistent struct

miniquake2.game.player.types.PlayerPowerups struct

miniquake2.game.player.types.PlayerRespawn struct

miniquake2.game.player.types.PlayerView struct

miniquake2.game.player.types.RuleResult struct

miniquake2.game.player.types.SpawnSelection struct

spawnSpot

function spawnSpot(className, targetName, origin, angles)

Spawn spot.

ParameterTypeDefaultDescription
classNamedynamic—className value consumed by this operation.
targetNamedynamic—targetName value consumed by this operation.
origindynamic—origin value consumed by this operation.
anglesdynamic—angles value consumed by this operation.

View source

miniquake2.game.player.types.SpawnSpot struct

miniquake2.game.player.types.ViewSettings struct

zeroPersistent

function zeroPersistent()

Return the zero persistent value.

View source

zeroPlayerView

function zeroPlayerView()

Return the zero player view value.

View source

zeroRespawn

function zeroRespawn(itemSlots)

Return the zero respawn value.

ParameterTypeDefaultDescription
itemSlotsdynamic—itemSlots value consumed by this operation.

View source