Package-level declarations

Types

Link copied to clipboard
class Block(val name: String, properties: Map<String, Any> = emptyMap())

Represents a Block in a Level.

Link copied to clipboard

Represents a Game Dimension.

Link copied to clipboard
abstract class Level : Iterable<LevelObject>

Represents a LevelZ level.

Link copied to clipboard
class Level2D : Level

Represents a 2D level.

Link copied to clipboard
class Level3D : Level

Represents a 3D level.

Link copied to clipboard

Represents a class that exports a LevelZ Level to a file.

Link copied to clipboard
class LevelObject(val block: Block, val coordinate: Coordinate) : Comparable<LevelObject>

Utility Object for representing a Level Block and its Coordinate.

Link copied to clipboard
enum Scroll : Enum<Scroll>

Represents the scroll direction of a 2D Level.

Properties

Link copied to clipboard

Converts a Pair of Block and Coordinate into a LevelObject.

Functions

Link copied to clipboard
fun Level.export(includeHeaders: Boolean = true, includeData: Boolean = true, lineSeparator: String = ""): String

Exports this Level to a String.

Link copied to clipboard
fun exportToString(level: Level, includeHeaders: Boolean = true, includeData: Boolean = true, lineSeparator: String = ""): String

Exports a Level to a String.

Link copied to clipboard

Maps all the given coordinates to LevelObjects with the given block.