mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
The API.md nameplate prose contradicted the code in two places, and both were resolved in the code's favor after verifying it. Frame identity: the prose claimed default engine plates get a fresh wrapper table per call with unstable identity. UI::FrameObject::Push has one path for both plate kinds — a registry ref at +0x08 of <= 0 delegates to the engine's ScriptRegister, which builds the wrapper and writes the ref back, so every later call rawgeti's that same cached slot. Identity is stable for both kinds and addon-set fields survive. Dropped the registry/metatable mechanics that only existed to justify the wrong claim; kept the pooled-frame caveat, restated with its real reason. Token stability: the NAME_PLATE_UNIT_ADDED note said "nameplate3" can resolve elsewhere after a slot "vacates and shifts". AssignSlot never shifts an entry and removal frees the slot in place. Kept the advice to store the GUID, fixed the reason: slots are reused, never shifted. Also fixed the iteration example one code block above the slot rules, which broke at the first vacant slot and so missed every plate past a gap in the sparse slot array.