Table of Contents

Class Global

Namespace
WoWLib
Assembly
WoWLib.dll
public static class Global
Inheritance
Global
Inherited Members

Methods

ExpansionOf(ClientVersion)

The expansion a client version belongs to, by major version — works for any build, not just the targeted releases.

This is the CONTENT axis: Cataclysm Classic 4.4.2 reports Cata, because
that is the game it is. It is NOT the format axis — that same client
writes War Within-era files. For formats, ask
to_expansion(version.format_lineage) instead.
public static Expansion? ExpansionOf(ClientVersion version)

Parameters

version ClientVersion

a full client version

Returns

Expansion?

the expansion, or None for unknown majors

ToClientVersion(Expansion)

The last-minor-of-major client version wowlib targets for this expansion (the versions constant).

public static ClientVersion ToClientVersion(Expansion expansion)

Parameters

expansion Expansion

the expansion

Returns

ClientVersion

the matching versions constant

ToExpansion(ClientVersion)

The expansion whose targeted release is exactly this version. Never matches a Classic constant — Classic clients are not expansion releases; pass version.format_lineage to ask which expansion's FORMATS one uses.

public static Expansion? ToExpansion(ClientVersion version)

Parameters

version ClientVersion

a full client version

Returns

Expansion?

the expansion, or None if the version is not one of the versions constants