mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 12:51:42 +00:00
api: update research
This commit is contained in:
parent
db18572a70
commit
292fe71e05
8 changed files with 51 additions and 12 deletions
8
UnleashedRecomp/api/CSD/Manager/csdmMotionPattern.h
Normal file
8
UnleashedRecomp/api/CSD/Manager/csdmMotionPattern.h
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <SWA.inl>
|
||||||
|
|
||||||
|
namespace Chao::CSD
|
||||||
|
{
|
||||||
|
class CMotionPattern : CBase {};
|
||||||
|
}
|
||||||
|
|
@ -13,13 +13,15 @@ namespace Chao::CSD
|
||||||
class CNode : public CResourceBase<Node>, SubjectBase<CNodeObserver, CNode>, CBase
|
class CNode : public CResourceBase<Node>, SubjectBase<CNodeObserver, CNode>, CBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SWA_INSERT_PADDING(0x50);
|
SWA_INSERT_PADDING(0x34);
|
||||||
|
xpointer<CMotionPattern> m_pMotionPattern;
|
||||||
|
SWA_INSERT_PADDING(0x18);
|
||||||
|
|
||||||
~CNode();
|
~CNode();
|
||||||
|
|
||||||
void SetText(const char* in_pText);
|
void SetText(const char* in_pText);
|
||||||
void SetText(const wchar_t* in_pText);
|
void SetText(const wchar_t* in_pText);
|
||||||
Hedgehog::Math::CVector2 GetPosition() const;
|
Hedgehog::Math::CVector2* GetPosition() const;
|
||||||
void SetPosition(float in_X, float in_Y);
|
void SetPosition(float in_X, float in_Y);
|
||||||
void SetHideFlag(uint32_t in_HideFlag);
|
void SetHideFlag(uint32_t in_HideFlag);
|
||||||
void SetRotation(float in_Rotation);
|
void SetRotation(float in_Rotation);
|
||||||
|
|
|
||||||
|
|
@ -17,11 +17,11 @@ namespace Chao::CSD
|
||||||
GuestToHostFunction<int>(0x830BF640, this, in_pText);
|
GuestToHostFunction<int>(0x830BF640, this, in_pText);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline Hedgehog::Math::CVector2 CNode::GetPosition() const
|
inline Hedgehog::Math::CVector2* CNode::GetPosition() const
|
||||||
{
|
{
|
||||||
Hedgehog::Math::CVector2 position;
|
guest_stack_var<Hedgehog::Math::CVector2> pos;
|
||||||
GuestToHostFunction<void>(0x830BF008, this, &position);
|
GuestToHostFunction<void>(0x830BF008, pos.get(), this);
|
||||||
return position;
|
return pos.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void CNode::SetPosition(float in_X, float in_Y)
|
inline void CNode::SetPosition(float in_X, float in_Y)
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ namespace Chao::CSD
|
||||||
void Update(float in_DeltaTime = 0.0f);
|
void Update(float in_DeltaTime = 0.0f);
|
||||||
void Render(void* in_pUnk);
|
void Render(void* in_pUnk);
|
||||||
|
|
||||||
RCPtr<CNode> GetNode(const char* in_pName) const;
|
void GetNode(RCPtr<CNode>& out_rResult, const char* in_pName);
|
||||||
|
|
||||||
bool SetMotion(const char* in_pName);
|
bool SetMotion(const char* in_pName);
|
||||||
void SetMotionFrame(float in_MotionFrame);
|
void SetMotionFrame(float in_MotionFrame);
|
||||||
|
|
|
||||||
|
|
@ -15,11 +15,9 @@ namespace Chao::CSD
|
||||||
SWA_VIRTUAL_FUNCTION(void, 3, this, in_pUnk);
|
SWA_VIRTUAL_FUNCTION(void, 3, this, in_pUnk);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline RCPtr<CNode> CScene::GetNode(const char* in_pName) const
|
inline void CScene::GetNode(RCPtr<CNode>& out_rResult, const char* in_pName)
|
||||||
{
|
{
|
||||||
RCPtr<CNode> rcNode;
|
GuestToHostFunction<void>(sub_830BCCA8, &out_rResult, this, in_pName);
|
||||||
GuestToHostFunction<void>(0x830BCCA8, this, rcNode, in_pName);
|
|
||||||
return rcNode;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool CScene::SetMotion(const char* in_pName)
|
inline bool CScene::SetMotion(const char* in_pName)
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
#include "Hedgehog/Universe/Thread/hhParallelJob.h"
|
#include "Hedgehog/Universe/Thread/hhParallelJob.h"
|
||||||
|
|
||||||
#include "CSD/Manager/csdmBase.h"
|
#include "CSD/Manager/csdmBase.h"
|
||||||
|
#include "CSD/Manager/csdmMotionPattern.h"
|
||||||
#include "CSD/Manager/csdmNode.h"
|
#include "CSD/Manager/csdmNode.h"
|
||||||
#include "CSD/Manager/csdmNodeObserver.h"
|
#include "CSD/Manager/csdmNodeObserver.h"
|
||||||
#include "CSD/Manager/csdmObserverBase.h"
|
#include "CSD/Manager/csdmObserverBase.h"
|
||||||
|
|
@ -36,6 +37,7 @@
|
||||||
#include "SWA/CSD/CsdProject.h"
|
#include "SWA/CSD/CsdProject.h"
|
||||||
#include "SWA/CSD/CsdTexListMirage.h"
|
#include "SWA/CSD/CsdTexListMirage.h"
|
||||||
#include "SWA/CSD/GameObjectCSD.h"
|
#include "SWA/CSD/GameObjectCSD.h"
|
||||||
|
#include "SWA/HUD/GeneralWindow/GeneralWindow.h"
|
||||||
#include "SWA/HUD/Loading/Loading.h"
|
#include "SWA/HUD/Loading/Loading.h"
|
||||||
#include "SWA/HUD/Pause/HudPause.h"
|
#include "SWA/HUD/Pause/HudPause.h"
|
||||||
#include "SWA/HUD/Sonic/HudSonicStage.h"
|
#include "SWA/HUD/Sonic/HudSonicStage.h"
|
||||||
|
|
|
||||||
18
UnleashedRecomp/api/SWA/HUD/GeneralWindow/GeneralWindow.h
Normal file
18
UnleashedRecomp/api/SWA/HUD/GeneralWindow/GeneralWindow.h
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <SWA.inl>
|
||||||
|
|
||||||
|
namespace SWA
|
||||||
|
{
|
||||||
|
class CGeneralWindow
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
SWA_INSERT_PADDING(0xD0);
|
||||||
|
Chao::CSD::RCPtr<Chao::CSD::CProject> m_rcGeneral;
|
||||||
|
Chao::CSD::RCPtr<Chao::CSD::CScene> m_rcBg;
|
||||||
|
Chao::CSD::RCPtr<Chao::CSD::CScene> m_rcWindow;
|
||||||
|
Chao::CSD::RCPtr<Chao::CSD::CScene> m_rcWindow_2;
|
||||||
|
Chao::CSD::RCPtr<Chao::CSD::CScene> m_rcWindowSelect;
|
||||||
|
Chao::CSD::RCPtr<Chao::CSD::CScene> m_rcFooter;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
#include <SWA.inl>
|
#include <SWA.inl>
|
||||||
|
|
||||||
|
using namespace Chao::CSD;
|
||||||
|
|
||||||
namespace SWA
|
namespace SWA
|
||||||
{
|
{
|
||||||
enum EActionType : uint32_t
|
enum EActionType : uint32_t
|
||||||
|
|
@ -47,7 +49,16 @@ namespace SWA
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
xpointer<void> m_pVftable;
|
xpointer<void> m_pVftable;
|
||||||
SWA_INSERT_PADDING(0xC8);
|
SWA_INSERT_PADDING(0x2C);
|
||||||
|
RCPtr<CProject> m_rcPause;
|
||||||
|
RCPtr<CScene> m_rcBg;
|
||||||
|
RCPtr<CScene> m_rcBg1;
|
||||||
|
RCPtr<CScene> m_rcBg1_2;
|
||||||
|
RCPtr<CScene> m_rcBg1Select;
|
||||||
|
RCPtr<CScene> m_rcBg1Select_2;
|
||||||
|
RCPtr<CScene> m_rcStatusTitle;
|
||||||
|
RCPtr<CScene> m_rcFooterA;
|
||||||
|
SWA_INSERT_PADDING(0x5C);
|
||||||
be<EActionType> m_Action;
|
be<EActionType> m_Action;
|
||||||
be<EMenuType> m_Menu;
|
be<EMenuType> m_Menu;
|
||||||
be<EStatusType> m_Status;
|
be<EStatusType> m_Status;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue