use super::Variable;
#[allow(dead_code)]
pub enum IndustryTile {
ConstructionState, TerrainType, TownZone, RelativeX, RelativeY, RelativePos, AnimationFrame, RandomBits, }
impl From<IndustryTile> for Variable {
fn from(variable: IndustryTile) -> Self {
match variable {
IndustryTile::ConstructionState => Self { variable: 0x40, parameter: None, shift: 0, mask: 0x00000003 },
IndustryTile::TerrainType => Self { variable: 0x41, parameter: None, shift: 0, mask: 0x000000ff },
IndustryTile::TownZone => Self { variable: 0x42, parameter: None, shift: 0, mask: 0x00000007 },
IndustryTile::RelativeX => Self { variable: 0x43, parameter: None, shift: 0, mask: 0x000000ff },
IndustryTile::RelativeY => Self { variable: 0x43, parameter: None, shift: 8, mask: 0x000000ff },
IndustryTile::RelativePos => Self { variable: 0x43, parameter: None, shift: 0, mask: 0x0000ffff },
IndustryTile::AnimationFrame => Self { variable: 0x44, parameter: None, shift: 0, mask: 0x000000ff },
IndustryTile::RandomBits => Self { variable: 0x5f, parameter: None, shift: 8, mask: 0x000000ff },
}
}
}