mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
Backport the modern PlayerLocation parameter object (Blizzard_ObjectAPI) - a lightweight descriptor wrapping one way to identify a player (GUID, unit token, chat line, /who index, battlefield-score index, ...). Pure table bookkeeping like the existing ItemLocation mixin, so ported addon code can construct and inspect it unchanged. The GUID / unit / chatLine / whoIndex / battlefieldScore kinds map to real 1.12 concepts; community / voice / Battle.net are kept as harmless data holders so the mixin matches retail exactly. The only two methods that reach into systems 1.12 lacks - IsValid (Club) and IsBattleNetGUID (account info) - are guarded so they degrade gracefully instead of erroring on the missing namespaces.