UnitAction
data class UnitAction(type: UnitActionType, title: String, isCurrentAction: Boolean, uncivSound: UncivSound, action: () -> Unit?)
Content copied to clipboard
Unit Actions - class - carries dynamic data and actual execution. Static properties are in UnitActionType. Note this is for the buttons offering actions, not the ongoing action stored with a MapUnit
Constructors
UnitAction
Link copied to clipboard
fun UnitAction(type: UnitActionType, title: String = type.value, isCurrentAction: Boolean = false, uncivSound: UncivSound = type.uncivSound, action: () -> Unit? = null)
Content copied to clipboard
Types
Functions
component1
Link copied to clipboard
component2
Link copied to clipboard
component3
Link copied to clipboard
component4
Link copied to clipboard
component5
Link copied to clipboard
copy
Link copied to clipboard
fun copy(type: UnitActionType, title: String = type.value, isCurrentAction: Boolean = false, uncivSound: UncivSound = type.uncivSound, action: () -> Unit? = null): UnitAction
Content copied to clipboard
Properties
isCurrentAction
Link copied to clipboard
type
Link copied to clipboard
uncivSound
Link copied to clipboard
Sources
jvm source
Link copied to clipboard