pdxparser

Undocumented in source.

Members

Classes

Assignment
class Assignment

Two values seperated by an equals. Usually an effect or condition ex: culture = albanian

Block
class Block

Represents a series of ret surrounded by curly braces (typically the value of an assignment)

PDXInvalidTypeException
class PDXInvalidTypeException

Thrown whenever a function is called on a node when it's not appropriate

PDXParsingException
class PDXParsingException

Thrown whenever parsing fails

Value
class Value

Represents a single value with no = after it.

Enums

NodeType
enum NodeType

Type of a node

Functions

isNode
bool isNode(Variant v)

Detects whether a variant is a Node or a descendant type

parse
Node parse(string script)

Takes a paradox script and returns a Block representing all nodes within it

parse
Block parse(string script, int* l)
Undocumented in source. Be warned that the author may not have intended to support it.
parseFromFile
Node parseFromFile(string filename)

Takes a filename, and parses a script from that file. Supported encodings are UTF-8 and ANSI

saveNode
string saveNode(Node n)

Saves a node to a string. Different from Node.toString() because it cuts off leading and trailing {}. Use this instead of Node.toString()` if you want to save a modified node

saveNodeToFile
void saveNodeToFile(string filename, Node n)

Same as saveNode() except it saves it to a file

Interfaces

Node
interface Node

Represents a single usable thing in the given script

Meta