2016-04-16 21:49:47 +00:00
|
|
|
#include "CParticleGenInfo.hpp"
|
|
|
|
#include "Particle/CParticleGen.hpp"
|
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
|
|
|
CParticleGenInfo::CParticleGenInfo(const SObjectTag& part, int frameCount, const std::string& boneName,
|
|
|
|
const zeus::CVector3f& scale, CParticleData::EParentedMode parentMode,
|
|
|
|
int a)
|
|
|
|
: x4_part(part), xc_seconds(frameCount / 60.f), x10_boneName(boneName), x28_parentMode(parentMode),
|
|
|
|
x2c_a(a), x30_particleScale(scale)
|
|
|
|
{}
|
|
|
|
|
|
|
|
static TUniqueId _initializeLight(const std::weak_ptr<CParticleGen>& system,
|
|
|
|
CStateManager& stateMgr, int lightId)
|
|
|
|
{
|
|
|
|
std::shared_ptr<CParticleGen> systemRef = system.lock();
|
|
|
|
if (systemRef->SystemHasLight())
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
return kInvalidUniqueId;
|
|
|
|
}
|
|
|
|
|
|
|
|
CParticleGenInfoGeneric::CParticleGenInfoGeneric(const SObjectTag& part,
|
|
|
|
const std::weak_ptr<CParticleGen>& system,
|
|
|
|
int frameCount, const std::string& boneName,
|
|
|
|
const zeus::CVector3f& scale,
|
|
|
|
CParticleData::EParentedMode parentMode,
|
|
|
|
int a, CStateManager& stateMgr, int lightId)
|
|
|
|
: CParticleGenInfo(part, frameCount, boneName, scale, parentMode, a), x80_system(system)
|
|
|
|
{
|
|
|
|
if (lightId == -1)
|
|
|
|
x84_lightId = kInvalidUniqueId;
|
|
|
|
else
|
|
|
|
x84_lightId = _initializeLight(system, stateMgr, lightId);
|
|
|
|
}
|
|
|
|
|
|
|
|
void CParticleGenInfoGeneric::AddToRenderer()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void CParticleGenInfoGeneric::Render()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void CParticleGenInfoGeneric::Update(float dt, CStateManager& stateMgr)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void CParticleGenInfoGeneric::SetOrientation(const zeus::CTransform& xf, CStateManager& stateMgr)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void CParticleGenInfoGeneric::SetTranslation(const zeus::CVector3f& trans, CStateManager& stateMgr)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void CParticleGenInfoGeneric::SetGlobalOrientation(const zeus::CTransform& xf, CStateManager& stateMgr)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void CParticleGenInfoGeneric::SetGlobalTranslation(const zeus::CVector3f& trans, CStateManager& stateMgr)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void CParticleGenInfoGeneric::SetGlobalScale(const zeus::CVector3f& scale)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void CParticleGenInfoGeneric::SetParticleEmission(bool, CStateManager& stateMgr)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CParticleGenInfoGeneric::IsSystemDeletable() const
|
|
|
|
{
|
2016-05-21 03:02:09 +00:00
|
|
|
return false;
|
2016-04-16 21:49:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
zeus::CAABox CParticleGenInfoGeneric::GetBounds() const
|
|
|
|
{
|
2016-05-21 03:02:09 +00:00
|
|
|
return {};
|
2016-04-16 21:49:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool CParticleGenInfoGeneric::HasActiveParticles() const
|
|
|
|
{
|
2016-05-21 03:02:09 +00:00
|
|
|
return false;
|
2016-04-16 21:49:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CParticleGenInfoGeneric::DestroyParticles()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CParticleGenInfoGeneric::HasLight() const
|
|
|
|
{
|
2016-05-21 03:02:09 +00:00
|
|
|
return false;
|
2016-04-16 21:49:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
TUniqueId CParticleGenInfoGeneric::GetLightId() const
|
|
|
|
{
|
2016-05-21 03:02:09 +00:00
|
|
|
return 0;
|
2016-04-16 21:49:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CParticleGenInfoGeneric::SetModulationColor(const zeus::CColor& color)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|