Trait initiative_core::world::npc::ethnicity::Generate

source ·
trait Generate {
    // Required method
    fn gen_name(rng: &mut impl Rng, age: &Age, gender: &Gender) -> String;

    // Provided method
    fn regenerate(rng: &mut impl Rng, npc: &mut NpcData) { ... }
}

Required Methods§

source

fn gen_name(rng: &mut impl Rng, age: &Age, gender: &Gender) -> String

Provided Methods§

source

fn regenerate(rng: &mut impl Rng, npc: &mut NpcData)

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Generate for initiative_core::world::npc::ethnicity::dragonborn::Ethnicity

source§

impl Generate for initiative_core::world::npc::ethnicity::dwarvish::Ethnicity

source§

impl Generate for initiative_core::world::npc::ethnicity::elvish::Ethnicity

source§

impl Generate for initiative_core::world::npc::ethnicity::gnomish::Ethnicity

source§

impl Generate for initiative_core::world::npc::ethnicity::halfling::Ethnicity

source§

impl Generate for initiative_core::world::npc::ethnicity::human::Ethnicity

source§

impl Generate for initiative_core::world::npc::ethnicity::orcish::Ethnicity

source§

impl Generate for initiative_core::world::npc::ethnicity::tiefling::Ethnicity