Companion

object Companion

Functions

Link copied to clipboard

returns CoordinateComponent from the given index.

Link copied to clipboard
fun getComponentsShapeString(list: Collection<CoordinateComponent>, existsSlotChar: Char = '#', notExistsSlotChar: Char = '_'): String

※ This is a high cost function.

Link copied to clipboard

Returns a list what contains specified amount of CoordinateComponent.

Link copied to clipboard

Builds a Map<CoordinateComponent, CMatter> from an inverted mapping of matter to coordinates.

Link copied to clipboard

Builds a Map<CoordinateComponent, CMatter> from a list of comma-separated rows and a token-to-matter mapping.

Link copied to clipboard

returns specified size square frame coordinates set.

Link copied to clipboard
fun squareFill(size: Int, dx: Int = 0, dy: Int = 0, safeTrim: Boolean = true): Set<CoordinateComponent>

returns specified size square coordinates set.