mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-25 01:14:19 +00:00
Add Act3Ammo, match Act3::Act3 (#1196)
* Implement `Act3Ammo`, match `Act3::Act3` * Move * Fix match
This commit is contained in:
committed by
GitHub
parent
5be00e1799
commit
97fb6e4f15
44
LEGO1/lego/legoomni/src/actors/act3ammo.cpp
Normal file
44
LEGO1/lego/legoomni/src/actors/act3ammo.cpp
Normal file
@@ -0,0 +1,44 @@
|
||||
#include "act3ammo.h"
|
||||
|
||||
#include "legocharactermanager.h"
|
||||
#include "misc.h"
|
||||
#include "roi/legoroi.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
DECOMP_SIZE_ASSERT(Act3Ammo, 0x1a0)
|
||||
|
||||
// FUNCTION: LEGO1 0x100537f0
|
||||
// FUNCTION: BETA10 0x1001d648
|
||||
Act3Ammo::Act3Ammo()
|
||||
{
|
||||
m_unk0x154 = 0;
|
||||
m_unk0x15c = 0;
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x100538a0
|
||||
// FUNCTION: BETA10 0x1001d6e7
|
||||
Act3Ammo::~Act3Ammo()
|
||||
{
|
||||
Destroy(TRUE);
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x10053900
|
||||
// FUNCTION: BETA10 0x1001d759
|
||||
void Act3Ammo::Destroy(MxBool p_fromDestructor)
|
||||
{
|
||||
if (!p_fromDestructor) {
|
||||
assert(0);
|
||||
}
|
||||
else if (m_roi != NULL) {
|
||||
CharacterManager()->ReleaseActor(m_roi->GetName());
|
||||
m_roi = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x10054050
|
||||
// STUB: BETA10 0x1001e362
|
||||
void Act3Ammo::VTable0x70(float p_time)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
Reference in New Issue
Block a user