askToBuyConstruction

fun askToBuyConstruction(construction: INonPerpetualConstruction, stat: Stat = preferredBuyStat)

Ask whether user wants to buy construction for stat.

Used from onClick and keyboard dispatch, thus only minimal parameters are passed, and it needs to do all checks and the sound as appropriate.

Sources

jvm source
Link copied to clipboard