mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
Registers Enum.InventoryType (equip-type enum) as a hardcoded mirror of Blizzard's 0..34 spec, via the same RegisterIntegerEnum path as Enum.PowerType / Enum.AddOnSecurityStatus. Values 0..28 are the ones vanilla items report; 29..34 (profession / equippable-spell types) are post-vanilla, included so backport code referencing those keys resolves. The field names (IndexHeadType, Index2HweaponType, …) aren't present in engine data and don't derive cleanly from the INVTYPE key strings, so a static mirror is the correct approach — it's a fixed API contract, not engine-driven. For the live set of slot keys the engine actually has, use C_Item.GetItemInventorySlotKey. Documented in docs/API.md and the README enum row.