Files
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.
| Parameter | Type | Default | Description |
|---|
accepted | dynamic | — | accepted value consumed by this operation. |
userInfo | dynamic | — | userInfo value consumed by this operation. |
rejection | dynamic | — | rejection value consumed by this operation. |
View source
miniquake2.game.player.types.ConnectResult struct
# createContext
function createContext(imports, registry, pmoveTrace)
Create context.
| Parameter | Type | Default | Description |
|---|
imports | dynamic | — | imports value consumed by this operation. |
registry | dynamic | — | registry value consumed by this operation. |
pmoveTrace | dynamic | — | pmoveTrace value consumed by this operation. |
View source
# createPlayer
function createPlayer(number, registry)
Create player.
| Parameter | Type | Default | Description |
|---|
number | dynamic | — | number value consumed by this operation. |
registry | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
className | dynamic | — | className value consumed by this operation. |
targetName | dynamic | — | targetName value consumed by this operation. |
origin | dynamic | — | origin value consumed by this operation. |
angles | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
itemSlots | dynamic | — | itemSlots value consumed by this operation. |
View source