MovableResourceLayoutElement

@Serializable
data class MovableResourceLayoutElement(val name: String, val shape: LayoutShape = LayoutShape.SQUARE, val color: String = "#8c564b", val size: Double = 16.0, val imageRef: String? = null, val label: String? = null, val position: LayoutPoint? = null, val busyColor: String? = null, val idleImage: String? = null, val busyImage: String? = null, val homeBase: String? = null)(source)

A movable/transport resource drawn as a glyph at its interpolated position while moving (8K.5). When at rest it is drawn at the layout position of its homeBase station when known (so the editor preview matches what the replay shows for a coordinate-free spatial model such as a DistancesModel), otherwise at its optional position (home/parked anchor; null ⇒ only shown while moving). busyColor/busyImage style it while transporting, idleImage when at rest/empty (10.8/C4). Keyed by name.

Constructors

Link copied to clipboard
constructor(name: String, shape: LayoutShape = LayoutShape.SQUARE, color: String = "#8c564b", size: Double = 16.0, imageRef: String? = null, label: String? = null, position: LayoutPoint? = null, busyColor: String? = null, idleImage: String? = null, busyImage: String? = null, homeBase: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard