mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-18 14:01:16 +00:00
Name remaining unknown in LegoBuildingManager
This commit is contained in:
parent
fb4dd74734
commit
89f2b244c5
@ -82,7 +82,7 @@ class LegoBuildingManager : public MxCore {
|
|||||||
MxBool DecrementCounter(LegoEntity* p_entity);
|
MxBool DecrementCounter(LegoEntity* p_entity);
|
||||||
MxBool DecrementCounter(MxS32 p_index);
|
MxBool DecrementCounter(MxS32 p_index);
|
||||||
MxBool DecrementCounter(LegoBuildingInfo* p_data);
|
MxBool DecrementCounter(LegoBuildingInfo* p_data);
|
||||||
void ScheduleAnimation(LegoEntity* p_entity, MxLong p_length, MxBool p_haveSound, MxBool p_unk0x28);
|
void ScheduleAnimation(LegoEntity* p_entity, MxLong p_length, MxBool p_haveSound, MxBool p_hideAfterAnimation);
|
||||||
void ClearCounters();
|
void ClearCounters();
|
||||||
void AdjustHeight(MxS32 p_index);
|
void AdjustHeight(MxS32 p_index);
|
||||||
MxResult DetermineBoundaries();
|
MxResult DetermineBoundaries();
|
||||||
@ -105,7 +105,7 @@ class LegoBuildingManager : public MxCore {
|
|||||||
AnimEntry* m_entries[5]; // 0x0c
|
AnimEntry* m_entries[5]; // 0x0c
|
||||||
MxS8 m_numEntries; // 0x20
|
MxS8 m_numEntries; // 0x20
|
||||||
LegoCacheSound* m_sound; // 0x24
|
LegoCacheSound* m_sound; // 0x24
|
||||||
MxBool m_unk0x28; // 0x28
|
MxBool m_hideAfterAnimation; // 0x28
|
||||||
LegoWorld* m_world; // 0x2c
|
LegoWorld* m_world; // 0x2c
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -256,7 +256,7 @@ void LegoBuildingManager::Init()
|
|||||||
m_boundariesDetermined = FALSE;
|
m_boundariesDetermined = FALSE;
|
||||||
m_numEntries = 0;
|
m_numEntries = 0;
|
||||||
m_sound = NULL;
|
m_sound = NULL;
|
||||||
m_unk0x28 = FALSE;
|
m_hideAfterAnimation = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x1002fa00
|
// FUNCTION: LEGO1 0x1002fa00
|
||||||
@ -661,7 +661,12 @@ MxBool LegoBuildingManager::DecrementCounter(LegoBuildingInfo* p_data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION: LEGO1 0x10030150
|
// FUNCTION: LEGO1 0x10030150
|
||||||
void LegoBuildingManager::ScheduleAnimation(LegoEntity* p_entity, MxLong p_length, MxBool p_haveSound, MxBool p_unk0x28)
|
void LegoBuildingManager::ScheduleAnimation(
|
||||||
|
LegoEntity* p_entity,
|
||||||
|
MxLong p_length,
|
||||||
|
MxBool p_haveSound,
|
||||||
|
MxBool p_hideAfterAnimation
|
||||||
|
)
|
||||||
{
|
{
|
||||||
m_world = CurrentWorld();
|
m_world = CurrentWorld();
|
||||||
|
|
||||||
@ -671,7 +676,7 @@ void LegoBuildingManager::ScheduleAnimation(LegoEntity* p_entity, MxLong p_lengt
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (m_numEntries == 0) {
|
if (m_numEntries == 0) {
|
||||||
m_unk0x28 = p_unk0x28;
|
m_hideAfterAnimation = p_hideAfterAnimation;
|
||||||
TickleManager()->RegisterClient(this, 50);
|
TickleManager()->RegisterClient(this, 50);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -741,7 +746,7 @@ MxResult LegoBuildingManager::Tickle()
|
|||||||
if (entry->m_time < time) {
|
if (entry->m_time < time) {
|
||||||
LegoBuildingInfo* info = GetInfo(entry->m_entity);
|
LegoBuildingInfo* info = GetInfo(entry->m_entity);
|
||||||
|
|
||||||
if (info->m_counter && !m_unk0x28) {
|
if (info->m_counter && !m_hideAfterAnimation) {
|
||||||
MxS32 index = info - g_buildingInfo;
|
MxS32 index = info - g_buildingInfo;
|
||||||
AdjustHeight(index);
|
AdjustHeight(index);
|
||||||
MxMatrix mat = entry->m_roi->GetLocal2World();
|
MxMatrix mat = entry->m_roi->GetLocal2World();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user