- Grunt::ServerLink: all CMD_GRUNT_* handlers, send helpers, features/strings, command table 0xB24D70, s_localeIds 0xAD3004, Pending::Remove (dead server-side link, docs/0x008CE200.md); ServerLink.h stub removed - PetAction type for CGPetInfo::m_actions / pet spell actions / cursor pet action, SetAutocast 0x5D32F0 - CParticleEmitter2 fields 0x98-0x11F moved into CParticleEmitter2::Params (ctor 0x979250) - fixed16(float), C3Vector::FlushDenormals, CGxuLightQueue + static 0xC7C074, CAaSphere(), CMapLowDetail(), C2Vector()/C4Plane() out of line, SpellHistory dtor, CGDynamicObject_C GetScale/GetRawFacing - DB record operator= (PetNameCache, CGPetition, DanceCache): fixes the shallow-copy double free in AddItem - ClientSetTimer(delay, handler, param) with its five callers, IOMd5Unit::Create without container, CDataStore::GetByte / Get(int32_t&), WDataStore::GetHeaderSpace, TSHashTable::Head, TSList::IsEmpty - CameraTurnPlayer calls CVehicleCamera_C::IsTransitioningFacing 0x5FAA10 (was IsHierarchyChasingFacing) - OFFSET additions: TSHashTable::Unlink, TInstanceId dtor, DBCACHEHASH dtor (+ ItemNameCache_C dtor), CDataStoreCache ctor, BitUnpacker/RunningAverageCalculator deleting dtors, CGTooltip::GetObjectType Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
114 lines
3.5 KiB
C++
114 lines
3.5 KiB
C++
#include "CGPetition.h"
|
|
#include "Engine/Source/Base/CDataStore.h"
|
|
#include "Engine/Source/Storm/H/storm.h"
|
|
|
|
// VERIFY: f4e45cbe manual
|
|
// OFFSET: 0x00599FD0
|
|
CGPetition::CGPetition() {
|
|
this->m_id = 0;
|
|
this->m_ownerGuid = WOWGUID();
|
|
this->m_title[0] = '\0';
|
|
this->m_bodyText[0] = '\0';
|
|
this->m_minSignatures = 0;
|
|
this->m_maxSignatures = 0;
|
|
this->m_deadline = 0;
|
|
this->m_issueDate = 0;
|
|
this->m_allowedGuildId = 0;
|
|
this->m_allowedClasses = 0;
|
|
this->m_allowedRaces = 0;
|
|
this->m_allowedGenders = 0;
|
|
this->m_allowedMaxLevel = 0;
|
|
this->m_allowedMinLevel = 0;
|
|
|
|
for (uint32_t i = 0; i < 10; i++) {
|
|
this->m_choiceText[i][0] = '\0';
|
|
}
|
|
|
|
this->m_numChoices = 0;
|
|
this->m_muid = 0;
|
|
this->m_staticType = 0;
|
|
}
|
|
|
|
// VERIFY: ac373b5d auto
|
|
// OFFSET: 0x00668600
|
|
CGPetition& CGPetition::operator=(const CGPetition& source) {
|
|
this->m_id = source.m_id;
|
|
this->m_ownerGuid = source.m_ownerGuid;
|
|
SStrCopy(this->m_title, source.m_title, sizeof(this->m_title));
|
|
SStrCopy(this->m_bodyText, source.m_bodyText, sizeof(this->m_bodyText));
|
|
this->m_minSignatures = source.m_minSignatures;
|
|
this->m_maxSignatures = source.m_maxSignatures;
|
|
this->m_deadline = source.m_deadline;
|
|
this->m_issueDate = source.m_issueDate;
|
|
this->m_allowedGuildId = source.m_allowedGuildId;
|
|
this->m_allowedClasses = source.m_allowedClasses;
|
|
this->m_allowedRaces = source.m_allowedRaces;
|
|
this->m_allowedGenders = source.m_allowedGenders;
|
|
this->m_allowedMaxLevel = source.m_allowedMaxLevel;
|
|
this->m_allowedMinLevel = source.m_allowedMinLevel;
|
|
this->m_muid = source.m_muid;
|
|
this->m_staticType = source.m_staticType;
|
|
|
|
for (uint32_t i = 0; i < 10; i++) {
|
|
SStrCopy(this->m_choiceText[i], source.m_choiceText[i], sizeof(this->m_choiceText[i]));
|
|
}
|
|
|
|
this->m_numChoices = source.m_numChoices;
|
|
|
|
return *this;
|
|
}
|
|
|
|
// VERIFY: a4660661 auto
|
|
// OFFSET: 0x0098CF70
|
|
void CGPetition::Pack(CDataStore* msg) {
|
|
msg->Put(static_cast<uint32_t>(this->m_id));
|
|
msg->Put(this->m_ownerGuid.m_guid);
|
|
msg->PutString(this->m_title);
|
|
msg->PutString(this->m_bodyText);
|
|
msg->Put(this->m_minSignatures);
|
|
msg->Put(this->m_maxSignatures);
|
|
msg->Put(this->m_deadline);
|
|
msg->Put(this->m_issueDate);
|
|
msg->Put(this->m_allowedGuildId);
|
|
msg->Put(this->m_allowedClasses);
|
|
msg->Put(this->m_allowedRaces);
|
|
msg->Put(this->m_allowedGenders);
|
|
msg->Put(this->m_allowedMinLevel);
|
|
msg->Put(this->m_allowedMaxLevel);
|
|
msg->Put(this->m_numChoices);
|
|
|
|
for (uint32_t i = 0; i < 10; i++) {
|
|
msg->PutString(this->m_choiceText[i]);
|
|
}
|
|
|
|
msg->Put(this->m_muid);
|
|
msg->Put(this->m_staticType);
|
|
}
|
|
|
|
// VERIFY: 114de37f auto
|
|
// OFFSET: 0x0098D090
|
|
void CGPetition::Unpack(CDataStore* msg) {
|
|
msg->Get(reinterpret_cast<uint32_t&>(this->m_id));
|
|
msg->Get(this->m_ownerGuid.m_guid);
|
|
msg->GetString(this->m_title, sizeof(this->m_title));
|
|
msg->GetString(this->m_bodyText, sizeof(this->m_bodyText));
|
|
msg->Get(this->m_minSignatures);
|
|
msg->Get(this->m_maxSignatures);
|
|
msg->Get(this->m_deadline);
|
|
msg->Get(this->m_issueDate);
|
|
msg->Get(this->m_allowedGuildId);
|
|
msg->Get(this->m_allowedClasses);
|
|
msg->Get(this->m_allowedRaces);
|
|
msg->Get(this->m_allowedGenders);
|
|
msg->Get(this->m_allowedMinLevel);
|
|
msg->Get(this->m_allowedMaxLevel);
|
|
msg->Get(this->m_numChoices);
|
|
|
|
for (uint32_t i = 0; i < 10; i++) {
|
|
msg->GetString(this->m_choiceText[i], sizeof(this->m_choiceText[i]));
|
|
}
|
|
|
|
msg->Get(this->m_muid);
|
|
msg->Get(this->m_staticType);
|
|
}
|