Trait veloren_world::site2::gen::Structure

source ·
pub trait Structure {
    // Provided methods
    fn render_inner(&self, _site: &Site, _land: &Land<'_>, _painter: &Painter) { ... }
    fn render(&self, site: &Site, land: &Land<'_>, painter: &Painter) { ... }
    fn render_collect(
        &self,
        site: &Site,
        canvas: &CanvasInfo<'_>,
    ) -> (Store<Primitive>, Vec<(Id<Primitive>, Fill)>, Vec<EntityInfo>) { ... }
    fn terrain_surface_at<R: Rng>(
        &self,
        _wpos: Vec2<i32>,
        _old: Block,
        _rng: &mut R,
        _col: &ColumnSample<'_>,
        _z_off: i32,
    ) -> Option<Block> { ... }
}

Provided Methods§

source

fn render_inner(&self, _site: &Site, _land: &Land<'_>, _painter: &Painter)

source

fn render(&self, site: &Site, land: &Land<'_>, painter: &Painter)

source

fn render_collect( &self, site: &Site, canvas: &CanvasInfo<'_>, ) -> (Store<Primitive>, Vec<(Id<Primitive>, Fill)>, Vec<EntityInfo>)

source

fn terrain_surface_at<R: Rng>( &self, _wpos: Vec2<i32>, _old: Block, _rng: &mut R, _col: &ColumnSample<'_>, _z_off: i32, ) -> Option<Block>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Structure for AdletStronghold

source§

impl Structure for AirshipDock

source§

impl Structure for Bridge

source§

impl Structure for Camp

source§

impl Structure for Castle

source§

impl Structure for Citadel

source§

impl Structure for CliffTower

source§

impl Structure for CliffTownAirshipDock

source§

impl Structure for CoastalAirshipDock

source§

impl Structure for CoastalHouse

source§

impl Structure for CoastalWorkshop

source§

impl Structure for Cultist

source§

impl Structure for DesertCityAirshipDock

source§

impl Structure for DesertCityArena

source§

impl Structure for DesertCityMultiPlot

source§

impl Structure for DesertCityTemple

source§

impl Structure for DwarvenMine

source§

impl Structure for FarmField

source§

impl Structure for GiantTree

source§

impl Structure for GliderFinish

source§

impl Structure for GliderPlatform

source§

impl Structure for GliderRing

source§

impl Structure for GnarlingFortification

source§

impl Structure for Haniwa

source§

impl Structure for House

source§

impl Structure for JungleRuin

source§

impl Structure for MyrmidonArena

source§

impl Structure for MyrmidonHouse

source§

impl Structure for PirateHideout

source§

impl Structure for RockCircle

source§

impl Structure for Sahagin

source§

impl Structure for SavannahAirshipDock

source§

impl Structure for SavannahHut

source§

impl Structure for SavannahWorkshop

source§

impl Structure for SeaChapel

source§

impl Structure for Tavern

source§

impl Structure for TerracottaHouse

source§

impl Structure for TerracottaPalace

source§

impl Structure for TerracottaYard

source§

impl Structure for TrollCave

source§

impl Structure for VampireCastle

source§

impl Structure for Workshop