Implement/match MxRegionTopBottom::MxRegionTopBottom

This commit is contained in:
Christian Semmler
2023-10-19 15:39:06 -04:00
parent 27e064e69d
commit fe40cbb772
2 changed files with 12 additions and 1 deletions

View File

@@ -105,10 +105,15 @@ void MxRegion::vtable1c()
// TODO
}
// OFFSET: LEGO1 0x100c50e0 STUB
// OFFSET: LEGO1 0x100c50e0
MxRegionTopBottom::MxRegionTopBottom(MxRect32 &p_rect)
{
m_top = p_rect.m_top;
m_bottom = p_rect.m_bottom;
m_leftRightList = new MxRegionLeftRightList;
MxRegionLeftRight *leftRight = new MxRegionLeftRight(p_rect.m_left, p_rect.m_right);
m_leftRightList->Append(leftRight);
}
// OFFSET: LEGO1 0x100c5280 STUB

View File

@@ -22,6 +22,12 @@ struct MxRegionTopBottom
// SIZE 0x08
struct MxRegionLeftRight
{
MxRegionLeftRight(MxS32 p_left, MxS32 p_right)
{
m_left = p_left;
m_right = p_right;
}
MxS32 m_left;
MxS32 m_right;
};