OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Functions | Variables
ItemEnumFunctions.cpp File Reference
#include "ItemEnumFunctions.h"
#include <cassert>
#include <string>
#include "Engine/Localization.h"
#include "Utility/IndexedArray.h"

Functions

std::string displayNameForDamageType (DamageType damageType, Localization *localization)
 
SpellId spellForSpellbook (ItemId spellbook)
 
SpellId spellForScroll (ItemId scroll)
 
SpellId spellForWand (ItemId wand)
 

Variables

static constexpr IndexedArray< SpellId, ITEM_FIRST_WAND, ITEM_LAST_WANDspellByWand
 
static constexpr IndexedArray< SpellId, ITEM_FIRST_SPELL_SCROLL, ITEM_LAST_SPELL_SCROLLspellByScroll
 
static constexpr IndexedArray< SpellId, ITEM_FIRST_SPELLBOOK, ITEM_LAST_SPELLBOOKspellBySpellbook
 

Function Documentation

◆ displayNameForDamageType()

std::string displayNameForDamageType ( DamageType  damageType,
Localization localization 
)

◆ spellForScroll()

SpellId spellForScroll ( ItemId  scroll)

◆ spellForSpellbook()

SpellId spellForSpellbook ( ItemId  spellbook)

◆ spellForWand()

SpellId spellForWand ( ItemId  wand)

Variable Documentation

◆ spellByScroll

constexpr IndexedArray<SpellId, ITEM_FIRST_SPELL_SCROLL, ITEM_LAST_SPELL_SCROLL> spellByScroll
staticconstexpr

◆ spellBySpellbook

constexpr IndexedArray<SpellId, ITEM_FIRST_SPELLBOOK, ITEM_LAST_SPELLBOOK> spellBySpellbook
staticconstexpr

◆ spellByWand

constexpr IndexedArray<SpellId, ITEM_FIRST_WAND, ITEM_LAST_WAND> spellByWand
staticconstexpr