[][src]Trait tiny_rpg::helper::Builder

pub trait Builder {
    type product;
    fn new() -> Self;
fn build(self) -> Result<Self::product, BuilderError>; }

Associated Types

type product

Loading content...

Required methods

fn new() -> Self

fn build(self) -> Result<Self::product, BuilderError>

Loading content...

Implementors

impl Builder for SettingsBuilder[src]

impl Builder for EntityBuilder[src]

type product = Entity

fn new() -> EntityBuilder[src]

Creates a new instance of EntityBuilder with some defaults. Still need to specify a position.

fn build(self) -> Result<Entity, BuilderError>[src]

Creates an instance of Entity from EntityBuilder.

impl Builder for LevelBuilder[src]

impl Builder for EnvironmentBuilder[src]

Loading content...