mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-22 07:37:59 -05:00
Implement/match LegoAnimationManager::FUN_10062710 (#897)
This commit is contained in:
parent
556cbdaab3
commit
172db7b5d8
2 changed files with 22 additions and 2 deletions
|
@ -16,6 +16,8 @@ class MxVariable;
|
||||||
class MxVariableTable;
|
class MxVariableTable;
|
||||||
class MxString;
|
class MxString;
|
||||||
|
|
||||||
|
extern const char* g_actorNames[7];
|
||||||
|
|
||||||
// SIZE 0x08
|
// SIZE 0x08
|
||||||
struct ColorStringStruct {
|
struct ColorStringStruct {
|
||||||
const char* m_targetName; // 0x00
|
const char* m_targetName; // 0x00
|
||||||
|
@ -164,6 +166,10 @@ class LegoGameState {
|
||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
inline MxU8 GetActorId() { return m_actorId; }
|
inline MxU8 GetActorId() { return m_actorId; }
|
||||||
|
|
||||||
|
// FUNCTION: BETA10 0x1004a2d0
|
||||||
|
inline const char* GetActorName() { return g_actorNames[GetActorId()]; }
|
||||||
|
|
||||||
inline Act GetCurrentAct() { return m_currentAct; }
|
inline Act GetCurrentAct() { return m_currentAct; }
|
||||||
inline Act GetLoadedAct() { return m_loadedAct; }
|
inline Act GetLoadedAct() { return m_loadedAct; }
|
||||||
inline Area GetCurrentArea() { return m_currentArea; }
|
inline Area GetCurrentArea() { return m_currentArea; }
|
||||||
|
|
|
@ -1492,11 +1492,25 @@ MxBool LegoAnimationManager::FUN_10062650(Vector3& p_position, float p_und, Lego
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// STUB: LEGO1 0x10062710
|
// FUNCTION: LEGO1 0x10062710
|
||||||
// FUNCTION: BETA10 0x10043787
|
// FUNCTION: BETA10 0x10043787
|
||||||
MxBool LegoAnimationManager::FUN_10062710(AnimInfo& p_info)
|
MxBool LegoAnimationManager::FUN_10062710(AnimInfo& p_info)
|
||||||
{
|
{
|
||||||
// TODO
|
MxU8 und = 0;
|
||||||
|
MxU8 actorId = GameState()->GetActorId();
|
||||||
|
|
||||||
|
if (actorId <= 5) {
|
||||||
|
und = g_unk0x100d8b28[actorId];
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!(und & p_info.m_unk0x0c)) {
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ModelExists(p_info, GameState()->GetActorName())) {
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue