Skip to main content

SpellTextResolver

Trait SpellTextResolver 

Source
pub trait SpellTextResolver {
    // Provided methods
    fn get_spell_description(&self, _spell_id: u32) -> Option<String> { ... }
    fn get_spell_name(&self, _spell_id: u32) -> Option<String> { ... }
    fn get_spell_icon(&self, _spell_id: u32) -> Option<String> { ... }
}
Expand description

Resolves recursive spell text embedding (description, name, icon).

Provided Methods§

Source

fn get_spell_description(&self, _spell_id: u32) -> Option<String>

Get another spell’s rendered description for @spelldesc embedding.

Source

fn get_spell_name(&self, _spell_id: u32) -> Option<String>

Get another spell’s name for @spellname embedding.

Source

fn get_spell_icon(&self, _spell_id: u32) -> Option<String>

Get another spell’s icon path for @spellicon embedding.

Implementors§