MiniQuake2

src/miniquake2/renderer/validation.ml

Provides miniquake2 renderer validation facilities for this project.

Package
miniquake2.renderer.validation
Reachable
Yes

Imports

Declarations

invalid

function invalid(code, message)

Return the invalid value.

ParameterTypeDefaultDescription
codedynamic—code value consumed by this operation.
messagedynamic—Human-readable message associated with the operation.

View source

numeric

function numeric(value)

Performs the numeric operation for the miniquake2 renderer validation module.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.

View source

requireFunction

function requireFunction(value, fieldName)

Require function.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.
fieldNamedynamic—fieldName value consumed by this operation.

View source

valid

function valid()

Report whether valid.

View source

validateDLight

function validateDLight(value, index)

Validate d light.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.
indexdynamic—Zero-based index of the affected item.

View source

validateEntity

function validateEntity(value, index)

Validate entity.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.
indexdynamic—Zero-based index of the affected item.

View source

validateLightStyle

function validateLightStyle(value, index)

Validate light style.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.
indexdynamic—Zero-based index of the affected item.

View source

validateParticle

function validateParticle(value, index)

Validate particle.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.
indexdynamic—Zero-based index of the affected item.

View source

validateRefDef

function validateRefDef(frame)

Validate ref def.

ParameterTypeDefaultDescription
framedynamic—frame value consumed by this operation.

View source

validateRefExport

function validateRefExport(exports)

Validate ref export.

ParameterTypeDefaultDescription
exportsdynamic—exports value consumed by this operation.

View source

validateRefImport

function validateRefImport(imports)

Validate ref import.

ParameterTypeDefaultDescription
importsdynamic—imports value consumed by this operation.

View source

validateVec3

function validateVec3(value, fieldName)

Validate vec 3.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.
fieldNamedynamic—fieldName value consumed by this operation.

View source

miniquake2.renderer.validation.ValidationResult struct