2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 01:07:43 +00:00

Update boo, fixes and initial imps

This commit is contained in:
2017-11-24 00:01:06 -08:00
parent 41edf5a226
commit c6fdd8297e
11 changed files with 50 additions and 13 deletions

View File

@@ -97,6 +97,20 @@ CAnimData::CAnimData(CAssetId id,
x1f8_animRoot = treeNode;
}
void CAnimData::InitializeEffects(CStateManager& mgr, TAreaId aId, const zeus::CVector3f& scale)
{
for (const auto& effects : xc_charInfo.GetEffectList())
{
for (const auto& effect : effects.second)
{
x120_particleDB.CacheParticleDesc(effect.GetParticleTag());
x120_particleDB.AddParticleEffect(effect.GetSegmentName(), effect.GetFlags(), CParticleData(), scale, mgr,
aId, true, x21c_particleLightIdx);
x120_particleDB.SetParticleEffectState(effect.GetComponentName(), false, mgr);
}
}
}
CAssetId CAnimData::GetEventResourceIdForAnimResourceId(CAssetId id) const
{
return x0_charFactory->GetEventResourceIdForAnimResourceId(id);