Tileset

interface Tileset<T : Any> : Identifiable

Handles the textures of a tileset, and provides functionality to render them on a surface.

Functions

drawTile
Link copied to clipboard
common
abstract fun drawTile(tile: Tile, surface: T, position: Position)
Draws the given tile on the given surface at the given position.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toString
Link copied to clipboard
common
open fun toString(): String

Properties

height
Link copied to clipboard
common
abstract val height: Int
The height of a texture in pixels.
id
Link copied to clipboard
common
abstract val id: UUID
size
Link copied to clipboard
common
open val size: Size
width * height
targetType
Link copied to clipboard
common
abstract val targetType: KClass<T>
The type of the target surface the textures are drawn.
width
Link copied to clipboard
common
abstract val width: Int
The width of a texture in pixels.

Inheritors

VirtualTileset
Link copied to clipboard

Sources

(source)
Link copied to clipboard