Skip to main content
Verticopolis engineGitHub

Module rent

Module rent 

Source
Expand description

Setting what rooms charge: one room at a time (Simulation::adjust_rent, Simulation::price_unit, Simulation::set_no_rate) or every room of a kind at once (Simulation::apply_rent_batch).

In Classic a priced room picks one of four rungs (very low, low, average, high), as in the original. In Modern it takes any price inside its kind’s band, in steps. crate::catalog::catalog publishes the rungs, bands and defaults for each kind. A condo that has been sold keeps its price.

Structs§

BatchRentResult
What a batch reprice did, counted in rooms.

Enums§

BatchTarget
The price Simulation::apply_rent_batch sets.