mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
1.12.1 already turns unit-field changes into events. FUN_0051bbb0 registers a watcher on unit field i for each named slot i of the static event-name array at 0x00BE1198, and the watcher (FUN_0051bd50) signals event i once per token of the unit through the broadcast FUN_00515e50. The field index is the event id. UNIT_FIELD_TARGET is index 10, and the watcher's size selector still gives it the 8 bytes of a GUID, but slot 10 has no name, so the engine never watches the field. Event::Custom::EngineName names such a slot. It writes the name into the static array at load, before any world init or unit watch. World init copies the array into the live event table (0x0048FEA1), and the engine's own watchers then fire the event for every token, with focus, nameplateN, markN and focustarget included. The entry joins the reservation list with a fixed slot, so it is documented, kept across /reload, and not counted by Grow. Slot 10 is in the glue band. Its one by-number signal is the glue realm-list rebuild (0x0046E73D), which only CGlueMgr::Idle reaches.