- Port hit-order Lua stand-ins (unit tokens, tooltips, combat log filters and current entry, bags/containers, quest POI, minimap, titles, world states, trade, group roles, runes, mirror timers, saved-variable registration, Quit) - LoadAddOn: real add-on loading (Blizzard_CombatLog etc. now load) - CombatLogEntry::PushEvent: COMBAT_LOG_EVENT arguments - World map chain: SetMapToCurrentZone, SetMap, GetWorldPosition, landmarks, overlays, highlight, zones, dungeon levels, player position - OpenArchives: locale index was off by one (enUS read the koKR DBC slot, leaving zone/map names empty) - Zone/area sound chain, invisible units (spline mode read size), raid/bag crash fixes, stand-in console, waystone icon for all executables - Coding-rule cleanups: statics/includes at the top, event enums, Lua _Scripts layout Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
47 lines
1.2 KiB
C++
47 lines
1.2 KiB
C++
#include "DanceCache.h"
|
|
#include "Engine/Source/Base/CDataStore.h"
|
|
#include "Engine/Source/Storm/H/storm.h"
|
|
|
|
// INLINED
|
|
DanceCache::DanceCache() {
|
|
this->m_id = 0;
|
|
this->m_guid = WOWGUID();
|
|
this->m_name[0] = '\0';
|
|
this->m_data = nullptr;
|
|
this->m_dataCount = 0;
|
|
this->unk_0098 = 0;
|
|
}
|
|
|
|
// INLINED
|
|
DanceCache::~DanceCache() {
|
|
delete[] this->m_data;
|
|
}
|
|
|
|
// VERIFY: cb0294c9 manual
|
|
// OFFSET: 0x0098D290
|
|
void DanceCache::Pack(CDataStore* msg) {
|
|
msg->Put(static_cast<uint32_t>(this->m_id));
|
|
*msg << static_cast<const SmartGUID&>(this->m_guid);
|
|
msg->PutString(this->m_name);
|
|
msg->Put(this->m_dataCount);
|
|
msg->PutData(this->m_data, 4 * this->m_dataCount);
|
|
msg->Put(this->unk_0098);
|
|
}
|
|
|
|
// VERIFY: a4007070 manual
|
|
// OFFSET: 0x0098D300
|
|
void DanceCache::Unpack(CDataStore* msg) {
|
|
msg->Get(reinterpret_cast<uint32_t&>(this->m_id));
|
|
|
|
if (this->m_id < 0) {
|
|
return;
|
|
}
|
|
|
|
*msg >> static_cast<SmartGUID&>(this->m_guid);
|
|
msg->GetString(this->m_name, sizeof(this->m_name));
|
|
msg->Get(this->m_dataCount);
|
|
this->m_data = new (__FILE__, __LINE__) uint32_t[this->m_dataCount];
|
|
msg->GetData(this->m_data, 4 * this->m_dataCount);
|
|
msg->Get(this->unk_0098);
|
|
}
|