# invalid
function invalid(code, message)Return the invalid value.
| Parameter | Type | Default | Description |
|---|---|---|---|
code | dynamic | — | code value consumed by this operation. |
message | dynamic | — | Human-readable message associated with the operation. |
src/miniquake2/renderer/validation.mlProvides miniquake2 renderer validation facilities for this project.
miniquake2/renderer/constants.ml as rc → src/miniquake2/renderer/constants.mlminiquake2/renderer/types.ml as rt → src/miniquake2/renderer/types.mlfunction invalid(code, message)Return the invalid value.
| Parameter | Type | Default | Description |
|---|---|---|---|
code | dynamic | — | code value consumed by this operation. |
message | dynamic | — | Human-readable message associated with the operation. |
function numeric(value)Performs the numeric operation for the miniquake2 renderer validation module.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function requireFunction(value, fieldName)Require function.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
fieldName | dynamic | — | fieldName value consumed by this operation. |
function valid()Report whether valid.
function validateDLight(value, index)Validate d light.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
index | dynamic | — | Zero-based index of the affected item. |
function validateEntity(value, index)Validate entity.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
index | dynamic | — | Zero-based index of the affected item. |
function validateLightStyle(value, index)Validate light style.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
index | dynamic | — | Zero-based index of the affected item. |
function validateParticle(value, index)Validate particle.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
index | dynamic | — | Zero-based index of the affected item. |
function validateRefDef(frame)Validate ref def.
| Parameter | Type | Default | Description |
|---|---|---|---|
frame | dynamic | — | frame value consumed by this operation. |
function validateRefExport(exports)Validate ref export.
| Parameter | Type | Default | Description |
|---|---|---|---|
exports | dynamic | — | exports value consumed by this operation. |
function validateRefImport(imports)Validate ref import.
| Parameter | Type | Default | Description |
|---|---|---|---|
imports | dynamic | — | imports value consumed by this operation. |
function validateVec3(value, fieldName)Validate vec 3.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
fieldName | dynamic | — | fieldName value consumed by this operation. |