Skip to main content

Mine

Trait Mine 

Source
pub trait Mine: Building {
    // Required methods
    fn mine_id(&self) -> MineId;
    fn production(&self, stats: &MineStatsTable) -> Result<MineProduction>;
    fn min_production(&self) -> MineProduction;
    fn max_production(&self) -> MineProduction;
}

Required Methods§

Source

fn mine_id(&self) -> MineId

Source

fn production(&self, stats: &MineStatsTable) -> Result<MineProduction>

Amount of resources generated by the mine at its current level.

Source

fn min_production(&self) -> MineProduction

Amount of resources generated by the mine at its minimum level.

Source

fn max_production(&self) -> MineProduction

Amount of resources generated by the mine at its maximum level.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§