refactor(offsets): collapse duplicate object type-mask enum (OBJ_TYPE_* -> TYPEMASK_*)

OBJ_TYPE_* was a partial second naming of the same object-type bits as
the complete TYPEMASK_* set (OBJ_TYPE_ITEM=2=TYPEMASK_ITEM, ... GAMEOBJECT
=0x20 both) -- a single-source-of-truth violation. Repoint all ~18
references to TYPEMASK_* (identical values, behavior-preserving) and
delete the OBJ_TYPE_* definitions, folding their derivation notes
(bitmask semantics, FUN_004F8DB0 for PLAYER, FUN_0052AA20 for GAMEOBJECT,
FUN_00529FE0 SetUnit) into the surviving TYPEMASK_* comment.
This commit is contained in:
Brues
2026-08-08 15:12:55 -05:00
parent 8fa344a084
commit 0df8885045
18 changed files with 29 additions and 32 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ static int __fastcall Script_GameTooltipSetUnitAura(void *L) {
using ObjectGetName_t = const char *(__fastcall *)(void *obj, void *edx_unused, int *outFlags);
static const char *ResolveUnitName(uint32_t guidLo, uint32_t guidHi) {
void *obj = Object::ByGuid(Offsets::OBJ_TYPE_UNIT,
void *obj = Object::ByGuid(Offsets::TYPEMASK_UNIT,
(static_cast<uint64_t>(guidHi) << 32) | guidLo,
"GameTooltip:GetUnitGUID", 0x172);
if (obj == nullptr)