mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-22 16:04:17 +00:00
Implement/match LegoWorld::ActorExists
(#1330)
This commit is contained in:

committed by
GitHub

parent
4d3481d2bd
commit
33d8192d75
@@ -138,6 +138,9 @@ public:
|
||||
MxFloat& p_param5
|
||||
);
|
||||
|
||||
// FUNCTION: BETA10 0x100e0160
|
||||
MxBool ActorExists(LegoPathActor* p_actor) { return m_actors.find(p_actor) == m_actors.end() ? FALSE : TRUE; }
|
||||
|
||||
static MxResult Init();
|
||||
static MxResult Reset();
|
||||
|
||||
|
@@ -101,6 +101,7 @@ public:
|
||||
Vector3& p_direction
|
||||
);
|
||||
void RemoveActor(LegoPathActor* p_actor);
|
||||
MxBool ActorExists(LegoPathActor* p_actor);
|
||||
void FUN_1001fda0(LegoAnimPresenter* p_presenter);
|
||||
void FUN_1001fe90(LegoAnimPresenter* p_presenter);
|
||||
LegoPathBoundary* FindPathBoundary(const char* p_name);
|
||||
|
@@ -334,6 +334,21 @@ void LegoWorld::RemoveActor(LegoPathActor* p_actor)
|
||||
}
|
||||
}
|
||||
|
||||
// FUNCTION: BETA10 0x100da560
|
||||
MxBool LegoWorld::ActorExists(LegoPathActor* p_actor)
|
||||
{
|
||||
LegoPathControllerListCursor cursor(&m_list0x68);
|
||||
LegoPathController* controller;
|
||||
|
||||
while (cursor.Next(controller)) {
|
||||
if (controller->ActorExists(p_actor) == TRUE) {
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x1001fda0
|
||||
// FUNCTION: BETA10 0x100da621
|
||||
void LegoWorld::FUN_1001fda0(LegoAnimPresenter* p_presenter)
|
||||
|
Reference in New Issue
Block a user