mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 12:51:42 +00:00
api: fix GameObject layout
This commit is contained in:
parent
dd066095a9
commit
7afe0f27de
10 changed files with 30 additions and 19 deletions
|
|
@ -332,7 +332,7 @@ namespace Hedgehog::Base
|
||||||
inline int CSharedString::compare(const CSharedString& in_rOther) const
|
inline int CSharedString::compare(const CSharedString& in_rOther) const
|
||||||
{
|
{
|
||||||
// TODO: DO NOT PASS BY REFERENCE.
|
// TODO: DO NOT PASS BY REFERENCE.
|
||||||
GuestToHostFunction<int>(0x82DFB028, this, &in_rOther);
|
return GuestToHostFunction<int>(0x82DFB028, this, &in_rOther);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline CSharedString& CSharedString::operator=(const CSharedString& in_rOther)
|
inline CSharedString& CSharedString::operator=(const CSharedString& in_rOther)
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,6 @@ namespace Hedgehog::Universe
|
||||||
class CMessageActor : public IMessageProcess, public IParallelJob
|
class CMessageActor : public IMessageProcess, public IParallelJob
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SWA_INSERT_PADDING(0x7C);
|
SWA_INSERT_PADDING(0x88);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "SWA.inl"
|
#include "SWA.inl"
|
||||||
#include "Hedgehog/Universe/Thread/hhParallelJob.h"
|
#include "Hedgehog/Universe/Thread/hhParallelJob.h"
|
||||||
|
|
@ -8,15 +8,18 @@ namespace Hedgehog::Universe
|
||||||
class CUpdateUnit : public Base::CObject, public IParallelJob
|
class CUpdateUnit : public Base::CObject, public IParallelJob
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
SWA_INSERT_PADDING(0x04); // vftable ptr
|
||||||
SWA_INSERT_PADDING(0x24);
|
SWA_INSERT_PADDING(0x24);
|
||||||
|
|
||||||
CUpdateUnit(const swa_null_ctor& nil) : CObject(nil), IParallelJob(nil) {}
|
CUpdateUnit(const swa_null_ctor& nil) : CObject(nil), IParallelJob(nil) {}
|
||||||
CUpdateUnit();
|
CUpdateUnit();
|
||||||
virtual ~CUpdateUnit();
|
|
||||||
|
|
||||||
virtual void ExecuteParallelJob(const SUpdateInfo& in_rUpdateInfo) override;
|
// TODO: implement virtual functions.
|
||||||
|
// virtual ~CUpdateUnit();
|
||||||
virtual void UpdateParallel(const SUpdateInfo& in_rUpdateInfo) {}
|
//
|
||||||
virtual void UpdateSerial(const SUpdateInfo& in_rUpdateInfo) {}
|
// virtual void ExecuteParallelJob(const SUpdateInfo& in_rUpdateInfo) override;
|
||||||
|
//
|
||||||
|
// virtual void UpdateParallel(const SUpdateInfo& in_rUpdateInfo) {}
|
||||||
|
// virtual void UpdateSerial(const SUpdateInfo& in_rUpdateInfo) {}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,14 @@ namespace Hedgehog::Universe
|
||||||
class IParallelJob
|
class IParallelJob
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
SWA_INSERT_PADDING(0x04); // vftable ptr
|
||||||
|
|
||||||
IParallelJob() {}
|
IParallelJob() {}
|
||||||
IParallelJob(const swa_null_ctor&) {}
|
IParallelJob(const swa_null_ctor&) {}
|
||||||
|
|
||||||
virtual ~IParallelJob() = default;
|
// TODO: implement virtual functions.
|
||||||
|
// virtual ~IParallelJob() = default;
|
||||||
virtual void ExecuteParallelJob(const SUpdateInfo& in_rUpdateInfo) = 0;
|
//
|
||||||
|
// virtual void ExecuteParallelJob(const SUpdateInfo& in_rUpdateInfo) = 0;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,5 +43,6 @@
|
||||||
#include "SWA/System/GameMode/Title/TitleStateBase.h"
|
#include "SWA/System/GameMode/Title/TitleStateBase.h"
|
||||||
#include "SWA/System/ApplicationDocument.h"
|
#include "SWA/System/ApplicationDocument.h"
|
||||||
#include "SWA/System/GameDocument.h"
|
#include "SWA/System/GameDocument.h"
|
||||||
|
#include "SWA/System/GameObject.h"
|
||||||
#include "SWA/System/InputState.h"
|
#include "SWA/System/InputState.h"
|
||||||
#include "SWA/System/PadState.h"
|
#include "SWA/System/PadState.h"
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,5 @@ namespace SWA
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Chao::CSD::RCPtr<Chao::CSD::CProject> m_rcProject;
|
Chao::CSD::RCPtr<Chao::CSD::CProject> m_rcProject;
|
||||||
SWA_INSERT_PADDING(0x38);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,14 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "SWA.inl"
|
#include <SWA.inl>
|
||||||
|
#include <SWA/System/GameObject.h>
|
||||||
|
|
||||||
namespace SWA
|
namespace SWA
|
||||||
{
|
{
|
||||||
class CCamera // : public CGameObject, public Hedgehog::Universe::TStateMachine<CCamera>
|
class CCamera : public CGameObject // , public Hedgehog::Universe::TStateMachine<CCamera>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SWA_INSERT_PADDING(0x184);
|
SWA_INSERT_PADDING(0xC4);
|
||||||
be<float> m_VertAspectRatio;
|
be<float> m_VertAspectRatio;
|
||||||
SWA_INSERT_PADDING(0x48);
|
SWA_INSERT_PADDING(0x48);
|
||||||
be<float> m_HorzAspectRatio;
|
be<float> m_HorzAspectRatio;
|
||||||
|
|
@ -15,5 +16,8 @@ namespace SWA
|
||||||
be<float> m_FieldOfView;
|
be<float> m_FieldOfView;
|
||||||
be<float> m_VertFieldOfView;
|
be<float> m_VertFieldOfView;
|
||||||
be<float> m_HorzFieldOfView;
|
be<float> m_HorzFieldOfView;
|
||||||
|
SWA_INSERT_PADDING(0x18);
|
||||||
|
bool m_InvertY;
|
||||||
|
bool m_InvertX;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
namespace SWA::Player
|
namespace SWA::Player
|
||||||
{
|
{
|
||||||
class CEvilSonic
|
class CEvilSonic // : public CPlayer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SWA_INSERT_PADDING(0xC4);
|
SWA_INSERT_PADDING(0xC4);
|
||||||
|
|
|
||||||
|
|
@ -18,10 +18,10 @@ namespace SWA::Player
|
||||||
eGuideType_Y
|
eGuideType_Y
|
||||||
};
|
};
|
||||||
|
|
||||||
class CEvilHudGuide
|
class CEvilHudGuide : public CGameObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SWA_INSERT_PADDING(0x14D);
|
SWA_INSERT_PADDING(0x8D);
|
||||||
bool m_IsShown;
|
bool m_IsShown;
|
||||||
bool m_IsVisible;
|
bool m_IsVisible;
|
||||||
be<EGuideType> m_GuideType;
|
be<EGuideType> m_GuideType;
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,10 @@ namespace SWA
|
||||||
public:
|
public:
|
||||||
Hedgehog::Base::TSynchronizedPtr<CGameDocument> m_pGameDocument;
|
Hedgehog::Base::TSynchronizedPtr<CGameDocument> m_pGameDocument;
|
||||||
Hedgehog::Base::TSynchronizedPtr<CWorld> m_pWorld;
|
Hedgehog::Base::TSynchronizedPtr<CWorld> m_pWorld;
|
||||||
SWA_INSERT_PADDING(0x78);
|
SWA_INSERT_PADDING(0x70);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
SWA_INSERT_PADDING(0x04); // vftable ptr
|
||||||
xpointer<CMember> m_pMember;
|
xpointer<CMember> m_pMember;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue