# decodeDirection
function decodeDirection(index)Decode direction.
| Parameter | Type | Default | Description |
|---|---|---|---|
index | dynamic | — | Zero-based index of the affected item. |
src/miniquake2/qcommon/directions.mlProvides miniquake2 qcommon directions facilities for this project.
miniquake2/qcommon/message.ml as qmsg → src/miniquake2/qcommon/message.mlminiquake2/qcommon/types.ml as qt → src/miniquake2/qcommon/types.mlfunction decodeDirection(index)Decode direction.
| Parameter | Type | Default | Description |
|---|---|---|---|
index | dynamic | — | Zero-based index of the affected item. |
function encodeDirection(direction)Encode direction.
| Parameter | Type | Default | Description |
|---|---|---|---|
direction | dynamic | — | direction value consumed by this operation. |
function MSG_ReadDir(buffer)Read msg dir.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function MSG_WriteDir(buffer, direction)Write msg dir.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
direction | dynamic | — | direction value consumed by this operation. |
normalsStores module-wide normals state for the miniquake2 qcommon directions module.
function readDirection(buffer)Read direction.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function writeDirection(buffer, direction)Write direction.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
direction | dynamic | — | direction value consumed by this operation. |