wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
Loading...
Searching...
No Matches
expansion.hpp File Reference

The Expansion enum — the coarse, enumerable version axis the scripting bindings key on — and its mapping onto the ClientVersion constants wowlib targets (versions::). More...

#include <array>
#include <meta>
#include <optional>
#include <welder/vocabulary.hpp>
#include <wowlib/core/client_version.hpp>
Include dependency graph for expansion.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  wowlib
namespace  wowlib::detail

Enumerations

enum class  wowlib::Expansion {
  wowlib::Vanilla , wowlib::Tbc , wowlib::Wotlk , wowlib::Cata ,
  wowlib::Mop , wowlib::Wod , wowlib::Legion , wowlib::Bfa ,
  wowlib::Shadowlands , wowlib::Dragonflight , wowlib::TheWarWithin
}

Functions

constexpr ClientVersion wowlib::toClientVersion (Expansion expansion)
 The last-minor-of-major client version wowlib targets for this expansion (the versions constant).
constexpr std::optional< Expansion > wowlib::toExpansion (ClientVersion version)
 The expansion whose targeted release is exactly this version.
constexpr std::optional< Expansion > wowlib::expansionOf (ClientVersion version)

Variables

constexpr std::array wowlib::detail::ExpansionVersions
 The targeted ClientVersion of each Expansion, indexed by enumerator value.

Detailed Description

The Expansion enum — the coarse, enumerable version axis the scripting bindings key on — and its mapping onto the ClientVersion constants wowlib targets (versions::).

Definition in file expansion.hpp.