mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
Add DBC::RaceToken (race client-filename token) and make AreaName skip the parent Record lookup when resolveToParent is false, then replace the inline ChrClasses/ChrRaces/AreaTable name+token reads across the codebase with the shared helpers: player/Info, creature/Info, player/LocationInfo, unit/ClassBase, unit/RaceBase, map/Areas, taxi/Map, loot/History (drops its verbatim ClassTokenForId), classes/Info (drops local Records/LocaleIndex). All behavior-preserving -- the helpers wrap the same DBC::Record / LocalizedField / StringField calls with identical id==0 / out-of-range / empty-string -> nullptr semantics (verified against Lookup.cpp). Left alone: NameCache's reverse token->id resolvers (no forward helper fits) and the Record() reads of non-name fields in spell/Mod, map/Overlays, creature/Info.