Class Blueprint

All the properties can be set, and are required for a valid blueprint.

Implements

Constructors

Properties

Methods

Constructors

Properties

commands: BPCmd[]

All commands of the blueprint.

for (const cmd of bp.commands) {
if (cmd instanceof BuildCmd) {
console.log(cmd.item.name)
}
}

[]

height: number

Height of the blueprint area in square. [1, 100] integer.

1

version: number

Blueprint format version. 0 by default. At the time of writing, the game only accepts 0 and -1 and considers them the same. Any further updates may require changes in the library.

0

width: number

Width of the blueprint area in square. [1, 100] integer.

1

Methods

  • Changes multiple properties of the blueprint.

    Parameters

    Returns this