feat(object): manage post init flag across base object classes
Some checks are pending
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:cl compiler_name:MSVC cxx:cl os:windows-latest system_name:Windows test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:clang compiler_name:Clang cxx:clang++ os:macos-latest system_name:macOS test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:gcc compiler_name:GCC cxx:g++ os:ubuntu-latest system_name:Linux test_path:WhoaTest]) (push) Waiting to run

This commit is contained in:
fallenoak 2026-01-19 20:04:17 -06:00
parent 3d02539112
commit 8cf0abb1b1
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
8 changed files with 25 additions and 2 deletions

View File

@ -10,6 +10,10 @@ CGCorpse_C::~CGCorpse_C() {
void CGCorpse_C::PostInit(uint32_t time, const CClientObjCreate& init, bool a4) { void CGCorpse_C::PostInit(uint32_t time, const CClientObjCreate& init, bool a4) {
// TODO // TODO
this->CGObject_C::PostInit(time, init, a4);
// TODO
} }
void CGCorpse_C::SetStorage(uint32_t* storage, uint32_t* saved) { void CGCorpse_C::SetStorage(uint32_t* storage, uint32_t* saved) {

View File

@ -10,6 +10,10 @@ CGDynamicObject_C::~CGDynamicObject_C() {
void CGDynamicObject_C::PostInit(uint32_t time, const CClientObjCreate& init, bool a4) { void CGDynamicObject_C::PostInit(uint32_t time, const CClientObjCreate& init, bool a4) {
// TODO // TODO
this->CGObject_C::PostInit(time, init, a4);
// TODO
} }
void CGDynamicObject_C::SetStorage(uint32_t* storage, uint32_t* saved) { void CGDynamicObject_C::SetStorage(uint32_t* storage, uint32_t* saved) {

View File

@ -10,6 +10,10 @@ CGGameObject_C::~CGGameObject_C() {
void CGGameObject_C::PostInit(uint32_t time, const CClientObjCreate& init, bool a4) { void CGGameObject_C::PostInit(uint32_t time, const CClientObjCreate& init, bool a4) {
// TODO // TODO
this->CGObject_C::PostInit(time, init, a4);
// TODO
} }
void CGGameObject_C::SetStorage(uint32_t* storage, uint32_t* saved) { void CGGameObject_C::SetStorage(uint32_t* storage, uint32_t* saved) {

View File

@ -9,6 +9,8 @@ CGItem_C::~CGItem_C() {
} }
void CGItem_C::PostInit(uint32_t time, const CClientObjCreate& init, bool a4) { void CGItem_C::PostInit(uint32_t time, const CClientObjCreate& init, bool a4) {
this->CGObject_C::PostInit(time, init, a4);
// TODO // TODO
} }

View File

@ -60,6 +60,8 @@ void CGObject_C::Reenable() {
} }
void CGObject_C::PostInit(uint32_t time, const CClientObjCreate& init, bool a4) { void CGObject_C::PostInit(uint32_t time, const CClientObjCreate& init, bool a4) {
this->m_postInited = true;
// TODO // TODO
} }

View File

@ -13,6 +13,10 @@ CGPlayer_C::~CGPlayer_C() {
void CGPlayer_C::PostInit(uint32_t time, const CClientObjCreate& init, bool a4) { void CGPlayer_C::PostInit(uint32_t time, const CClientObjCreate& init, bool a4) {
// TODO // TODO
this->CGUnit_C::PostInit(time, init, a4);
// TODO
} }
void CGPlayer_C::SetStorage(uint32_t* storage, uint32_t* saved) { void CGPlayer_C::SetStorage(uint32_t* storage, uint32_t* saved) {

View File

@ -101,6 +101,10 @@ CGUnit_C::~CGUnit_C() {
void CGUnit_C::PostInit(uint32_t time, const CClientObjCreate& init, bool a4) { void CGUnit_C::PostInit(uint32_t time, const CClientObjCreate& init, bool a4) {
// TODO // TODO
this->CGObject_C::PostInit(time, init, a4);
// TODO
} }
void CGUnit_C::PostMovementUpdate(const CClientMoveUpdate& move, int32_t activeMover) { void CGUnit_C::PostMovementUpdate(const CClientMoveUpdate& move, int32_t activeMover) {

View File

@ -66,8 +66,7 @@ int32_t PostInitObject(CDataStore* msg, uint32_t time, bool a3) {
} }
if (object->m_postInited) { if (object->m_postInited) {
// TODO return CallMirrorHandlers(msg, true, guid);
return 1;
} }
switch (typeID) { switch (typeID) {