# appendUnknown
function appendUnknown(entity, key)Append unknown.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
key | dynamic | — | key value consumed by this operation. |
src/miniquake2/game/base/entity_parser.mlProvides miniquake2 game base entity parser facilities for this project.
miniquake2/game/base/types.ml as btypes → src/miniquake2/game/base/types.mlminiquake2/qcommon/byteio.ml as qbyteio → src/miniquake2/qcommon/byteio.mlminiquake2/qcommon/text.ml as qtext → src/miniquake2/qcommon/text.mlfunction appendUnknown(entity, key)Append unknown.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
key | dynamic | — | key value consumed by this operation. |
function createScanner(value)Create scanner.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function ED_NewString(value)Exact ED_NewString behavior: \n becomes a newline; every other backslash pair becomes one literal backslash and discards the second byte.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function ED_ParseField(entity, key, value)Returns true for a recognized field and false for the original diagnostic path ("... is not a field"). Utility keys beginning with _ are ignored.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
key | dynamic | — | key value consumed by this operation. |
value | dynamic | — | Value consumed or transformed by the operation. |
function finishPrefix(values, count)Finish prefix.
| Parameter | Type | Default | Description |
|---|---|---|---|
values | dynamic | — | values value consumed by this operation. |
count | dynamic | — | Number of items or units to process. |
function isWhitespace(value)Report whether is whitespace.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function materialize(parsed)Materialize state.
| Parameter | Type | Default | Description |
|---|---|---|---|
parsed | dynamic | — | parsed value consumed by this operation. |
function nextToken(scanner)Return the next token value.
| Parameter | Type | Default | Description |
|---|---|---|---|
scanner | dynamic | — | scanner value consumed by this operation. |
function parseEntities(value)Parse entities.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function parseInteger(value, fieldName)Parse integer.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
fieldName | dynamic | — | fieldName value consumed by this operation. |
function parseMaterializedEntities(value)Production spawn ingestion deliberately does not retain EntityPair token strings. Each field is consumed while both scanner tokens and the target BaseEntity are live locals, so a long sequence of retail level loads cannot expose an old pair through a later allocation/collection boundary. The ParsedEntity API above remains available for syntax/contract inspection.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function parseNumber(value, fieldName)Parse number.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
fieldName | dynamic | — | fieldName value consumed by this operation. |
function parserError(code, offset, message)Return the parser error value.
| Parameter | Type | Default | Description |
|---|---|---|---|
code | dynamic | — | code value consumed by this operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |
message | dynamic | — | Human-readable message associated with the operation. |
function parseVector(value, fieldName)Parse vector.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
fieldName | dynamic | — | fieldName value consumed by this operation. |
function skipTrivia(scanner)Return the skip trivia value.
| Parameter | Type | Default | Description |
|---|---|---|---|
scanner | dynamic | — | scanner value consumed by this operation. |