mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-28 02:44:18 +00:00
Use alias functions from Lego3DManager (#1167)
* Mark LegoEntity:Destroy (many vtables use it) * Starting addrs for Lego3DManager helpers * Addrs for users of Lego3DManager and changes where needed
This commit is contained in:
@@ -102,7 +102,7 @@ void LegoEntity::Destroy(MxBool p_fromDestructor)
|
||||
CharacterManager()->ReleaseActor(m_roi);
|
||||
}
|
||||
else {
|
||||
VideoManager()->Get3DManager()->GetLego3DView()->Remove(*m_roi);
|
||||
VideoManager()->Get3DManager()->Remove(*m_roi);
|
||||
delete m_roi;
|
||||
}
|
||||
}
|
||||
@@ -142,7 +142,7 @@ void LegoEntity::SetROI(LegoROI* p_roi, MxBool p_bool1, MxBool p_bool2)
|
||||
}
|
||||
|
||||
m_roi->SetEntity(this);
|
||||
VideoManager()->Get3DManager()->GetLego3DView()->Moved(*m_roi);
|
||||
VideoManager()->Get3DManager()->Moved(*m_roi);
|
||||
|
||||
if (p_bool1) {
|
||||
ClearFlag(c_bit1);
|
||||
@@ -154,6 +154,7 @@ void LegoEntity::SetROI(LegoROI* p_roi, MxBool p_bool1, MxBool p_bool2)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100109b0
|
||||
// FUNCTION: BETA10 0x1007e8b8
|
||||
void LegoEntity::SetLocation(const Vector3& p_location, const Vector3& p_direction, const Vector3& p_up, MxBool p_und)
|
||||
{
|
||||
Mx3DPointFloat direction;
|
||||
@@ -179,7 +180,7 @@ void LegoEntity::SetLocation(const Vector3& p_location, const Vector3& p_directi
|
||||
);
|
||||
|
||||
m_roi->UpdateTransformationRelativeToParent(mat);
|
||||
VideoManager()->Get3DManager()->GetLego3DView()->Moved(*m_roi);
|
||||
VideoManager()->Get3DManager()->Moved(*m_roi);
|
||||
|
||||
if (p_und) {
|
||||
FUN_10010c30();
|
||||
|
||||
@@ -403,6 +403,7 @@ MxBool LegoNavController::CalculateNewPosDir(
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10055500
|
||||
// FUNCTION: BETA10 0x1009bff8
|
||||
MxResult LegoNavController::UpdateLocation(const char* p_location)
|
||||
{
|
||||
MxResult result = FAILURE;
|
||||
@@ -436,6 +437,7 @@ MxResult LegoNavController::UpdateLocation(const char* p_location)
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10055620
|
||||
// FUNCTION: BETA10 0x1009c145
|
||||
MxResult LegoNavController::UpdateLocation(MxU32 p_location)
|
||||
{
|
||||
MxResult result = FAILURE;
|
||||
|
||||
@@ -138,6 +138,7 @@ void LegoPointOfViewController::AffectPointOfView()
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10065930
|
||||
// FUNCTION: BETA10 0x100c724d
|
||||
MxResult LegoPointOfViewController::Tickle()
|
||||
{
|
||||
ViewROI* pov = m_lego3DView->GetPointOfView();
|
||||
|
||||
Reference in New Issue
Block a user