Base Tile Graphics
abstract class BaseTileGraphics(initialTileset: TilesetResource, initialSize: Size) : InternalTileGraphics, TilesetOverride
Content copied to clipboard
This base class for TileGraphics can be re-used by complex image classes like layers, boxes, components, and more. All classes which are implementing the TileGraphics operations can use this class as a base class.
Constructors
BaseTileGraphics
Link copied to clipboard
Functions
applyStyle
Link copied to clipboard
createCopy
Link copied to clipboard
draw
Link copied to clipboard
Same as draw with 3 parameters, with the difference that size will be used for
drawArea
, and Position.zero as drawPosition
open override fun draw(tileComposite: TileComposite, drawPosition: Position)
Content copied to clipboard
open override fun draw(tileComposite: TileComposite, drawPosition: Position, drawArea: Size)
Content copied to clipboard
fill
Link copied to clipboard
getTileAtOrNull
Link copied to clipboard
toResized
Link copied to clipboard
Returns a copy of this TileGraphics resized to a new size and using Tile.empty if the new size is larger than the old and it needs to fill in empty areas.
Returns a copy of this image resized to a new size and using the specified filler if the new size is larger than the old one and we need to fill in empty areas.
toSubTileGraphics
Link copied to clipboard
toTileImage
Link copied to clipboard
Properties
state
Link copied to clipboard
Holds a snapshot of the current state of this InternalTileGraphics.
tileset
Link copied to clipboard
tilesetProperty
Link copied to clipboard
A Property that wraps the tileset and offers data binding and observability features.
Inheritors
Sources
(source)
Link copied to clipboard