MansionSimpleGrid 5.46.0
vanilla's WoodlandMansionPieces.SimpleGrid: a 2D grid of ints with a value for the cells outside it.
Properties
$height
php
public readonly int $height$width
php
public readonly int $widthMethods
__construct()
php
public function __construct(int $width, int $height, int $valueIfOutside)edgesTo()
php
public function edgesTo(int $x, int $y, int $ifValue) : boolget()
php
public function get(int $x, int $y) : intset()
php
public function set(int $x, int $y, int $value) : voidsetArea()
php
public function setArea(int $x0, int $y0, int $x1, int $y1, int $value) : voidsetIf()
php
public function setIf(int $x, int $y, int $ifValue, int $value) : void