Struct base::world::HexPillar [] [src]

pub struct HexPillar {
    // some fields omitted
}

Represents one pillar of hexgonal shape in the game world.

A pillar consists of multiple sections (each of which has a material) and optionally props (plants, objects, ...).

Methods

impl HexPillar
[src]

fn new(sections: Vec<PillarSection>, props: Vec<Prop>, biome: Biome) -> Self

fn sections(&self) -> &[PillarSection]

Returns a slice of this pillar's sections.

fn sections_mut(&mut self) -> &mut Vec<PillarSection>

Returns a slice of this pillar's sections.

fn props(&self) -> &[Prop]

Returns a slice of this pillar's props.

fn biome(&self) -> &Biome

Trait Implementations

impl Debug for HexPillar
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Default for HexPillar
[src]

fn default() -> HexPillar

Returns the "default value" for a type. Read more

impl Clone for HexPillar
[src]

fn clone(&self) -> HexPillar

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more