# createEntity
function createEntity(number, className)Create entity.
| Parameter | Type | Default | Description |
|---|---|---|---|
number | dynamic | — | number value consumed by this operation. |
className | dynamic | — | className value consumed by this operation. |
src/miniquake2/game/world/types.mlProvides miniquake2 game world types facilities for this project.
miniquake2/game/world/constants.ml as gwconstants → src/miniquake2/game/world/constants.mlminiquake2/qcommon/types.ml as qt → src/miniquake2/qcommon/types.mlfunction createEntity(number, className)Create entity.
| Parameter | Type | Default | Description |
|---|---|---|---|
number | dynamic | — | number value consumed by this operation. |
className | dynamic | — | className value consumed by this operation. |
miniquake2.game.world.types.MoveInfo struct
function stabilizeMoveInfo(moveInfo)Move stabilize info.
| Parameter | Type | Default | Description |
|---|---|---|---|
moveInfo | dynamic | — | moveInfo value consumed by this operation. |
function vec3FromValue(value, label)Spawn/parser-era components still expose three-element arrays in a few adapters. World simulation owns qcommon Vec3 records exclusively; convert once at the producer boundary instead of teaching vector math two shapes.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
label | dynamic | — | label value consumed by this operation. |
miniquake2.game.world.types.WorldCallbacks struct
miniquake2.game.world.types.WorldEntity struct
miniquake2.game.world.types.WorldState struct
miniquake2.game.world.types.WorldTrace struct
function zeroMoveInfo()Move zero info.