nw::LevelStats

struct LevelStats

Public Functions

LevelStats() = default
bool from_json(const nlohmann::json &archive)
nlohmann::json to_json() const
int level() const noexcept

Determines total level.

int level_by_class(Class id) const noexcept

Determines level by class.

size_t position(Class id) const noexcept

Returns the position of the class, or npos.

SpellBook *spells(Class id)

Gets spellbook.

const SpellBook *spells(Class id) const

Gets spellbook.

Public Members

std::array<ClassEntry, max_classes> entries

Public Static Attributes

static constexpr size_t max_classes = 8
static constexpr size_t npos = std::numeric_limits<size_t>::max()