Skip to main content

Module value

Module value 

Source
Expand description

Typed annotation values.

Newtypes such as GameDate and Tag can only be built through their parsers, so consumers never re-validate them.

Structs§

Clause
One top-level condition of a condition block. Top-level conditions are conjunctive and side-effect free, so evaluating them separately at the same moment gives the same verdict as the whole block.
EventId
123 or namespace.123.
GameDate
A full EU4 calendar date (no leap years), formatted YYYY.M.D.
NativeBlock
Native script, without its outer braces.
Tag
Three uppercase ASCII letters/digits starting with a letter, such as SWE.

Enums§

Value
ValueType
The type of an annotation parameter.

Functions§

boolean
identifier
An ASCII identifier: a letter or _, then letters, digits or _.
parse_value
Parses a script value as value_type. source must have the same byte offsets as the file named by path, so spans point at the original text.
scalar