mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-24 00:31:16 +00:00
Addrs for users of Lego3DManager and changes where needed
This commit is contained in:
parent
169f4ef9fe
commit
9901de9098
@ -222,6 +222,7 @@ MxResult LegoCharacterManager::Read(LegoStorage* p_storage)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x10083500
|
// FUNCTION: LEGO1 0x10083500
|
||||||
|
// FUNCTION: BETA10 0x10074345
|
||||||
LegoROI* LegoCharacterManager::GetActorROI(const char* p_name, MxBool p_createEntity)
|
LegoROI* LegoCharacterManager::GetActorROI(const char* p_name, MxBool p_createEntity)
|
||||||
{
|
{
|
||||||
LegoCharacter* character = NULL;
|
LegoCharacter* character = NULL;
|
||||||
@ -428,6 +429,7 @@ void LegoCharacterManager::ReleaseAutoROI(LegoROI* p_roi)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x10084010
|
// FUNCTION: LEGO1 0x10084010
|
||||||
|
// FUNCTION: BETA10 0x10074e20
|
||||||
void LegoCharacterManager::RemoveROI(LegoROI* p_roi)
|
void LegoCharacterManager::RemoveROI(LegoROI* p_roi)
|
||||||
{
|
{
|
||||||
VideoManager()->Get3DManager()->Remove(*p_roi);
|
VideoManager()->Get3DManager()->Remove(*p_roi);
|
||||||
@ -944,6 +946,7 @@ void LegoCharacterManager::SetCustomizeAnimFile(const char* p_value)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x10085210
|
// FUNCTION: LEGO1 0x10085210
|
||||||
|
// FUNCTION: BETA10 0x10076995
|
||||||
LegoROI* LegoCharacterManager::CreateAutoROI(const char* p_name, const char* p_lodName, MxBool p_createEntity)
|
LegoROI* LegoCharacterManager::CreateAutoROI(const char* p_name, const char* p_lodName, MxBool p_createEntity)
|
||||||
{
|
{
|
||||||
LegoROI* roi = NULL;
|
LegoROI* roi = NULL;
|
||||||
|
|||||||
@ -206,6 +206,7 @@ void LegoGameState::RemoveActor()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x10039940
|
// FUNCTION: LEGO1 0x10039940
|
||||||
|
// FUNCTION: BETA10 0x10084069
|
||||||
void LegoGameState::ResetROI()
|
void LegoGameState::ResetROI()
|
||||||
{
|
{
|
||||||
if (m_actorId) {
|
if (m_actorId) {
|
||||||
@ -215,8 +216,8 @@ void LegoGameState::ResetROI()
|
|||||||
LegoROI* roi = actor->GetROI();
|
LegoROI* roi = actor->GetROI();
|
||||||
|
|
||||||
if (roi) {
|
if (roi) {
|
||||||
VideoManager()->Get3DManager()->GetLego3DView()->Remove(*roi);
|
VideoManager()->Get3DManager()->Remove(*roi);
|
||||||
VideoManager()->Get3DManager()->GetLego3DView()->Add(*roi);
|
VideoManager()->Get3DManager()->Add(*roi);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -172,6 +172,7 @@ LegoTreeNode* GetTreeNode(LegoTreeNode* p_node, MxU32 p_index)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x1003e050
|
// FUNCTION: LEGO1 0x1003e050
|
||||||
|
// FUNCTION: BETA10 0x100d3abc
|
||||||
void FUN_1003e050(LegoAnimPresenter* p_presenter)
|
void FUN_1003e050(LegoAnimPresenter* p_presenter)
|
||||||
{
|
{
|
||||||
MxMatrix viewMatrix;
|
MxMatrix viewMatrix;
|
||||||
|
|||||||
@ -99,7 +99,7 @@ void LegoEntity::Destroy(MxBool p_fromDestructor)
|
|||||||
CharacterManager()->ReleaseActor(m_roi);
|
CharacterManager()->ReleaseActor(m_roi);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
VideoManager()->Get3DManager()->GetLego3DView()->Remove(*m_roi);
|
VideoManager()->Get3DManager()->Remove(*m_roi);
|
||||||
delete m_roi;
|
delete m_roi;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -119,6 +119,7 @@ void LegoEntity::SetWorld()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100108a0
|
// FUNCTION: LEGO1 0x100108a0
|
||||||
|
// FUNCTION: BETA10 0x1007e724
|
||||||
void LegoEntity::SetROI(LegoROI* p_roi, MxBool p_bool1, MxBool p_bool2)
|
void LegoEntity::SetROI(LegoROI* p_roi, MxBool p_bool1, MxBool p_bool2)
|
||||||
{
|
{
|
||||||
m_roi = p_roi;
|
m_roi = p_roi;
|
||||||
@ -137,7 +138,7 @@ void LegoEntity::SetROI(LegoROI* p_roi, MxBool p_bool1, MxBool p_bool2)
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_roi->SetEntity(this);
|
m_roi->SetEntity(this);
|
||||||
VideoManager()->Get3DManager()->GetLego3DView()->Moved(*m_roi);
|
VideoManager()->Get3DManager()->Moved(*m_roi);
|
||||||
|
|
||||||
if (p_bool1) {
|
if (p_bool1) {
|
||||||
ClearFlag(c_bit1);
|
ClearFlag(c_bit1);
|
||||||
@ -149,6 +150,7 @@ void LegoEntity::SetROI(LegoROI* p_roi, MxBool p_bool1, MxBool p_bool2)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100109b0
|
// FUNCTION: LEGO1 0x100109b0
|
||||||
|
// FUNCTION: BETA10 0x1007e8b8
|
||||||
void LegoEntity::SetLocation(const Vector3& p_location, const Vector3& p_direction, const Vector3& p_up, MxBool p_und)
|
void LegoEntity::SetLocation(const Vector3& p_location, const Vector3& p_direction, const Vector3& p_up, MxBool p_und)
|
||||||
{
|
{
|
||||||
Mx3DPointFloat direction;
|
Mx3DPointFloat direction;
|
||||||
@ -174,7 +176,7 @@ void LegoEntity::SetLocation(const Vector3& p_location, const Vector3& p_directi
|
|||||||
);
|
);
|
||||||
|
|
||||||
m_roi->UpdateTransformationRelativeToParent(mat);
|
m_roi->UpdateTransformationRelativeToParent(mat);
|
||||||
VideoManager()->Get3DManager()->GetLego3DView()->Moved(*m_roi);
|
VideoManager()->Get3DManager()->Moved(*m_roi);
|
||||||
|
|
||||||
if (p_und) {
|
if (p_und) {
|
||||||
FUN_10010c30();
|
FUN_10010c30();
|
||||||
|
|||||||
@ -403,6 +403,7 @@ MxBool LegoNavController::CalculateNewPosDir(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x10055500
|
// FUNCTION: LEGO1 0x10055500
|
||||||
|
// FUNCTION: BETA10 0x1009bff8
|
||||||
MxResult LegoNavController::UpdateLocation(const char* p_location)
|
MxResult LegoNavController::UpdateLocation(const char* p_location)
|
||||||
{
|
{
|
||||||
MxResult result = FAILURE;
|
MxResult result = FAILURE;
|
||||||
@ -436,6 +437,7 @@ MxResult LegoNavController::UpdateLocation(const char* p_location)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x10055620
|
// FUNCTION: LEGO1 0x10055620
|
||||||
|
// FUNCTION: BETA10 0x1009c145
|
||||||
MxResult LegoNavController::UpdateLocation(MxU32 p_location)
|
MxResult LegoNavController::UpdateLocation(MxU32 p_location)
|
||||||
{
|
{
|
||||||
MxResult result = FAILURE;
|
MxResult result = FAILURE;
|
||||||
|
|||||||
@ -138,6 +138,7 @@ void LegoPointOfViewController::AffectPointOfView()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x10065930
|
// FUNCTION: LEGO1 0x10065930
|
||||||
|
// FUNCTION: BETA10 0x100c724d
|
||||||
MxResult LegoPointOfViewController::Tickle()
|
MxResult LegoPointOfViewController::Tickle()
|
||||||
{
|
{
|
||||||
ViewROI* pov = m_lego3DView->GetPointOfView();
|
ViewROI* pov = m_lego3DView->GetPointOfView();
|
||||||
|
|||||||
@ -199,6 +199,7 @@ MxResult LegoModelPresenter::CreateROI(MxDSChunk* p_chunk)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x1007ff70
|
// FUNCTION: LEGO1 0x1007ff70
|
||||||
|
// FUNCTION: BETA10 0x10099061
|
||||||
MxResult LegoModelPresenter::FUN_1007ff70(
|
MxResult LegoModelPresenter::FUN_1007ff70(
|
||||||
MxDSChunk& p_chunk,
|
MxDSChunk& p_chunk,
|
||||||
LegoEntity* p_entity,
|
LegoEntity* p_entity,
|
||||||
@ -211,8 +212,8 @@ MxResult LegoModelPresenter::FUN_1007ff70(
|
|||||||
ParseExtra();
|
ParseExtra();
|
||||||
|
|
||||||
if (m_roi == NULL && (result = CreateROI(&p_chunk)) == SUCCESS && p_entity != NULL) {
|
if (m_roi == NULL && (result = CreateROI(&p_chunk)) == SUCCESS && p_entity != NULL) {
|
||||||
VideoManager()->Get3DManager()->GetLego3DView()->Add(*m_roi);
|
VideoManager()->Get3DManager()->Add(*m_roi);
|
||||||
VideoManager()->Get3DManager()->GetLego3DView()->Moved(*m_roi);
|
VideoManager()->Get3DManager()->Moved(*m_roi);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_roi != NULL) {
|
if (m_roi != NULL) {
|
||||||
@ -266,8 +267,8 @@ void LegoModelPresenter::ReadyTickle()
|
|||||||
m_subscriber->FreeDataChunk(chunk);
|
m_subscriber->FreeDataChunk(chunk);
|
||||||
|
|
||||||
if (result == SUCCESS) {
|
if (result == SUCCESS) {
|
||||||
VideoManager()->Get3DManager()->GetLego3DView()->Add(*m_roi);
|
VideoManager()->Get3DManager()->Add(*m_roi);
|
||||||
VideoManager()->Get3DManager()->GetLego3DView()->Moved(*m_roi);
|
VideoManager()->Get3DManager()->Moved(*m_roi);
|
||||||
|
|
||||||
if (m_compositePresenter != NULL && m_compositePresenter->IsA("LegoEntityPresenter")) {
|
if (m_compositePresenter != NULL && m_compositePresenter->IsA("LegoEntityPresenter")) {
|
||||||
((LegoEntityPresenter*) m_compositePresenter)->GetInternalEntity()->SetROI(m_roi, TRUE, TRUE);
|
((LegoEntityPresenter*) m_compositePresenter)->GetInternalEntity()->SetROI(m_roi, TRUE, TRUE);
|
||||||
@ -289,6 +290,7 @@ void LegoModelPresenter::ReadyTickle()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x100801b0
|
// FUNCTION: LEGO1 0x100801b0
|
||||||
|
// FUNCTION: BETA10 0x10099443
|
||||||
void LegoModelPresenter::ParseExtra()
|
void LegoModelPresenter::ParseExtra()
|
||||||
{
|
{
|
||||||
MxU16 extraLength;
|
MxU16 extraLength;
|
||||||
@ -319,8 +321,8 @@ void LegoModelPresenter::ParseExtra()
|
|||||||
roiList.erase(it);
|
roiList.erase(it);
|
||||||
|
|
||||||
m_addedToView = TRUE;
|
m_addedToView = TRUE;
|
||||||
VideoManager()->Get3DManager()->GetLego3DView()->Add(*m_roi);
|
VideoManager()->Get3DManager()->Add(*m_roi);
|
||||||
VideoManager()->Get3DManager()->GetLego3DView()->Moved(*m_roi);
|
VideoManager()->Get3DManager()->Moved(*m_roi);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -69,6 +69,7 @@ MxResult LegoVideoManager::CreateDirect3D()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x1007ac40
|
// FUNCTION: LEGO1 0x1007ac40
|
||||||
|
// FUNCTION: BETA10 0x100d5cf4
|
||||||
MxResult LegoVideoManager::Create(MxVideoParam& p_videoParam, MxU32 p_frequencyMS, MxBool p_createThread)
|
MxResult LegoVideoManager::Create(MxVideoParam& p_videoParam, MxU32 p_frequencyMS, MxBool p_createThread)
|
||||||
{
|
{
|
||||||
MxResult result = FAILURE;
|
MxResult result = FAILURE;
|
||||||
@ -219,6 +220,7 @@ MxResult LegoVideoManager::Create(MxVideoParam& p_videoParam, MxU32 p_frequencyM
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x1007b5e0
|
// FUNCTION: LEGO1 0x1007b5e0
|
||||||
|
// FUNCTION: BETA10 0x100d6816
|
||||||
void LegoVideoManager::Destroy()
|
void LegoVideoManager::Destroy()
|
||||||
{
|
{
|
||||||
if (m_cursorSurface != NULL) {
|
if (m_cursorSurface != NULL) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user