Files
SatyandClaude Opus 5.5 393769ff36 Port single-missing-function modules
LeaveWorld handlers, game object type checks, corpse/dynamic object
virtuals, loot/voice/macro helpers, declined words, ProcessAgreement,
ObjectCreateStaticEx, FFX death/fog-seed/nether-blur passes, software
snow renderer, streaming decal, QuestCache copy, trajectory encoder and
deleting destructor tags. Fixes the missing CMapStaticEntity destructor
model release.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-02 14:39:43 +02:00

43 lines
1.4 KiB
C++

#include <cstddef>
#include <cstdint>
#include "Engine/Source/Base/Prop.h"
#include "Engine/Source/Event/EvtContext.h"
#include "Engine/Source/Os/OsCall.h"
#include "Engine/Source/Os/TimeManager.h"
// VERIFY: 8a197959 manual
// OFFSET: 0x0047E680
EvtContext::EvtContext(uint32_t flags, uint32_t idleTime, uint32_t schedWeight, void* callContext, int32_t startWatchdog) : m_timerQueue(offsetof(EvtTimer, m_targetTime)) {
this->m_currTime = 0;
this->m_schedState = SCHEDSTATE_ACTIVE;
this->m_schedLastIdle = OsGetAsyncTimeMs();
this->m_schedFlags = flags;
this->m_schedIdleTime = idleTime;
this->m_schedInitialIdleTime = idleTime;
this->m_schedWeight = schedWeight;
this->m_schedSmoothWeight = schedWeight;
this->m_schedRebalance = 0;
this->m_queueSyncButtonState = 0;
this->m_propContext = PropCreateContext();
this->m_callContext = callContext;
this->m_startWatchdog = startWatchdog;
}
// VERIFY: a33f23a6 manual
// OFFSET: [0x0047F6C0, 0x0047F920]
EvtContext::~EvtContext() {
for (uint32_t i = 0; i < EVENTIDS; i++) {
this->m_queueHandlerList[i].Clear();
}
this->m_queueMessageList.Clear();
this->m_queueSyncKeyDownList.Clear();
for (uint32_t i = 1; i < this->m_timerIdTable.m_allocArray.Count(); i++) {
delete this->m_timerIdTable.m_allocArray[i];
}
PropDeleteContext(this->m_propContext);
OsCallDestroyContext(this->m_callContext);
}