mirror of https://github.com/PrimeDecomp/prime.git
Match and link CParticleGenInfoGeneric
This commit is contained in:
parent
c6d3f0ae8b
commit
0e9d00b19b
|
@ -113,7 +113,7 @@ LIBS = [
|
||||||
"MetroidPrime/CGameLight",
|
"MetroidPrime/CGameLight",
|
||||||
"MetroidPrime/Tweaks/CTweakTargeting",
|
"MetroidPrime/Tweaks/CTweakTargeting",
|
||||||
"MetroidPrime/Tweaks/CTweakAutoMapper",
|
"MetroidPrime/Tweaks/CTweakAutoMapper",
|
||||||
"MetroidPrime/CParticleGenInfoGeneric",
|
["MetroidPrime/CParticleGenInfoGeneric", True],
|
||||||
"MetroidPrime/CParticleGenInfo",
|
"MetroidPrime/CParticleGenInfo",
|
||||||
"MetroidPrime/CParticleDatabase",
|
"MetroidPrime/CParticleDatabase",
|
||||||
"MetroidPrime/Tweaks/CTweakGunRes",
|
"MetroidPrime/Tweaks/CTweakGunRes",
|
||||||
|
|
|
@ -80,7 +80,7 @@ METROIDPRIME :=\
|
||||||
$(BUILD_DIR)/asm/MetroidPrime/CGameLight.o\
|
$(BUILD_DIR)/asm/MetroidPrime/CGameLight.o\
|
||||||
$(BUILD_DIR)/asm/MetroidPrime/Tweaks/CTweakTargeting.o\
|
$(BUILD_DIR)/asm/MetroidPrime/Tweaks/CTweakTargeting.o\
|
||||||
$(BUILD_DIR)/asm/MetroidPrime/Tweaks/CTweakAutoMapper.o\
|
$(BUILD_DIR)/asm/MetroidPrime/Tweaks/CTweakAutoMapper.o\
|
||||||
$(BUILD_DIR)/asm/MetroidPrime/CParticleGenInfoGeneric.o\
|
$(BUILD_DIR)/src/MetroidPrime/CParticleGenInfoGeneric.o\
|
||||||
$(BUILD_DIR)/asm/MetroidPrime/CParticleGenInfo.o\
|
$(BUILD_DIR)/asm/MetroidPrime/CParticleGenInfo.o\
|
||||||
$(BUILD_DIR)/asm/MetroidPrime/CParticleDatabase.o\
|
$(BUILD_DIR)/asm/MetroidPrime/CParticleDatabase.o\
|
||||||
$(BUILD_DIR)/asm/MetroidPrime/Tweaks/CTweakGunRes.o\
|
$(BUILD_DIR)/asm/MetroidPrime/Tweaks/CTweakGunRes.o\
|
||||||
|
|
|
@ -15,8 +15,8 @@ CParticleGenInfoGeneric::CParticleGenInfoGeneric(const SObjectTag& part,
|
||||||
|
|
||||||
: CParticleGenInfo(part, frames, boneName, scale, parentMode, flags, state)
|
: CParticleGenInfo(part, frames, boneName, scale, parentMode, flags, state)
|
||||||
, x84_system(system)
|
, x84_system(system)
|
||||||
, x88_lightId(lightId == 0xffff ? kInvalidUniqueId
|
, x88_lightId(lightId == 0xffffffff ? kInvalidUniqueId
|
||||||
: _initializeLight(system, stateMgr, areaId, lightId)) {}
|
: _initializeLight(system, stateMgr, areaId, lightId)) {}
|
||||||
|
|
||||||
CParticleGenInfoGeneric::~CParticleGenInfoGeneric() {}
|
CParticleGenInfoGeneric::~CParticleGenInfoGeneric() {}
|
||||||
|
|
||||||
|
@ -111,30 +111,20 @@ void CParticleGenInfoGeneric::DeleteLight(CStateManager& stateMgr) {
|
||||||
x88_lightId = kInvalidUniqueId;
|
x88_lightId = kInvalidUniqueId;
|
||||||
}
|
}
|
||||||
|
|
||||||
TUniqueId CParticleGenInfoGeneric::GetLightId() const {
|
TUniqueId CParticleGenInfoGeneric::GetLightId() const { return x88_lightId; }
|
||||||
return x88_lightId;
|
|
||||||
}
|
|
||||||
|
|
||||||
void CParticleGenInfoGeneric::SetModulationColor(const CColor& color) {
|
void CParticleGenInfoGeneric::SetModulationColor(const CColor& color) {
|
||||||
x84_system->SetModulationColor(color);
|
x84_system->SetModulationColor(color);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CParticleGenInfoGeneric::HasLight() const {
|
bool CParticleGenInfoGeneric::HasLight() const { return x84_system->SystemHasLight(); }
|
||||||
return x84_system->SystemHasLight();
|
|
||||||
}
|
|
||||||
|
|
||||||
void CParticleGenInfoGeneric::DestroyParticles() {
|
void CParticleGenInfoGeneric::DestroyParticles() { x84_system->DestroyParticles(); }
|
||||||
x84_system->DestroyParticles();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool CParticleGenInfoGeneric::HasActiveParticles() const {
|
bool CParticleGenInfoGeneric::HasActiveParticles() const {
|
||||||
return x84_system->GetParticleCount() > 0;
|
return x84_system->GetParticleCount() > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
CAABox CParticleGenInfoGeneric::GetBounds() const {
|
CAABox CParticleGenInfoGeneric::GetBounds() const { return x84_system->GetBounds(); }
|
||||||
return x84_system->GetBounds();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool CParticleGenInfoGeneric::IsSystemDeletable() const {
|
bool CParticleGenInfoGeneric::IsSystemDeletable() const { return x84_system->IsSystemDeletable(); }
|
||||||
return x84_system->IsSystemDeletable();
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue