pub struct CityTile {
pub tile_x: i32,
pub tile_z: i32,
pub origin: Vec2,
pub size: f32,
pub graph: RoadGraph,
pub lots: Vec<BuildingLot>,
pub heightmap: HeightMap,
}Expand description
One generated city tile: graph + lots + the heightmap that produced them. Node positions are in world coordinates (offset by the tile’s origin).
Fields§
§tile_x: i32Integer tile index along X.
tile_z: i32Integer tile index along Z.
origin: Vec2World-space origin of this tile (lower-left corner).
size: f32Side length copied from CityStreamerConfig::tile_size.
graph: RoadGraphRoad graph in world coordinates. Block perimeters are valid.
lots: Vec<BuildingLot>Building lots in world coordinates.
heightmap: HeightMapThe (potentially carved-by-lot-flush) heightmap used to generate this tile, kept for downstream meshing.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CityTile
impl RefUnwindSafe for CityTile
impl Send for CityTile
impl Sync for CityTile
impl Unpin for CityTile
impl UnsafeUnpin for CityTile
impl UnwindSafe for CityTile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more