mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-04 02:31:10 -06:00
* Implemented guest-to-host function pointers (WIP) Co-Authored-By: Skyth (Asilkan) <19259897+blueskythlikesclouds@users.noreply.github.com> * function: support more types for function pointers * api: ported BlueBlur headers and misc. research * Move over function-pointers changes from options-menu branch. --------- Co-authored-by: Skyth (Asilkan) <19259897+blueskythlikesclouds@users.noreply.github.com>
54 lines
1.3 KiB
C++
54 lines
1.3 KiB
C++
namespace Chao::CSD
|
|
{
|
|
inline CScene::~CScene()
|
|
{
|
|
SWA_VIRTUAL_FUNCTION(void, 0, this);
|
|
}
|
|
|
|
inline void CScene::Update(float in_DeltaTime)
|
|
{
|
|
SWA_VIRTUAL_FUNCTION(void, 2, this, in_DeltaTime);
|
|
}
|
|
|
|
inline void CScene::Render(void* in_pUnk)
|
|
{
|
|
SWA_VIRTUAL_FUNCTION(void, 3, this, in_pUnk);
|
|
}
|
|
|
|
inline void CScene::GetNode(RCPtr<CNode>& out_rResult, const char* in_pName)
|
|
{
|
|
GuestToHostFunction<void>(sub_830BCCA8, &out_rResult, this, in_pName);
|
|
}
|
|
|
|
inline bool CScene::SetMotion(const char* in_pName)
|
|
{
|
|
return GuestToHostFunction<bool>(0x830BA760, this, in_pName);
|
|
}
|
|
|
|
inline void CScene::SetMotionFrame(float in_MotionFrame)
|
|
{
|
|
m_PrevMotionFrame = in_MotionFrame;
|
|
m_MotionFrame = in_MotionFrame;
|
|
}
|
|
|
|
inline void CScene::SetPosition(float in_X, float in_Y)
|
|
{
|
|
GuestToHostFunction<void>(0x830BB550, this, in_X, in_Y);
|
|
}
|
|
|
|
inline void CScene::SetHideFlag(uint32_t in_HideFlag)
|
|
{
|
|
GuestToHostFunction<void>(0x830BB378, this, in_HideFlag);
|
|
}
|
|
|
|
inline void CScene::SetRotation(float in_Angle)
|
|
{
|
|
GuestToHostFunction<void>(0x830BB5F8, this, in_Angle);
|
|
}
|
|
|
|
inline void CScene::SetScale(float in_X, float in_Y)
|
|
{
|
|
GuestToHostFunction<void>(0x830BB650, this, in_X, in_Y);
|
|
}
|
|
}
|