Struct rpg::item_generator::ItemGenerator [] [src]

pub struct ItemGenerator { /* fields omitted */ }

A builder like generator for items. Missing fields are filled randomly

Methods

impl ItemGenerator
[src]

Creates a new instance of ItemGenerator

Sets the name of the item

Sets the item_type of the item

Sets the influence of the item

Sets the stack_size of the item

Sets the rarity of the item

Generates the item using the given data. Missing data will be filed randomly

Trait Implementations

impl Clone for ItemGenerator
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ItemGenerator
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ItemGenerator
[src]

impl Debug for ItemGenerator
[src]

Formats the value using the given formatter.