levelz.parser¶
Attributes¶
The end of the Header section. |
|
The end of a Level. |
Functions¶
|
Parses a Level from a string. Uses 'n' as the line separator. |
|
Parses a Level from a file. |
|
Parses a Level from a list of strings. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Module Contents¶
- levelz.parser.HEADER_END = '---'¶
The end of the Header section.
- levelz.parser.END = 'end'¶
The end of a Level.
- levelz.parser.parse_level(level: str)¶
Parses a Level from a string. Uses ‘n’ as the line separator.
- levelz.parser.parse_file(file: str)¶
Parses a Level from a file.
- levelz.parser.parse_lines(level: list[str])¶
Parses a Level from a list of strings.
- levelz.parser.__split(level: list[str])¶
- levelz.parser.__objectify(input: str)¶
- levelz.parser.__roll(blocks: list[levelz.block.Block], chances: list[float])¶
- levelz.parser.__readHeaders(headers: list[str])¶
- levelz.parser.__read2DPoints(input: str)¶
- levelz.parser.__read3DPoints(input: str)¶
- levelz.parser.__readLine(input: str, threeD: bool = False)¶
- levelz.parser.__readBlock(line: str)¶
- levelz.parser.__readRawBlock(input: str)¶