#include "CAnimData.hpp" #include "CCharacterInfo.hpp" #include "CCharLayoutInfo.hpp" #include "Graphics/CSkinnedModel.hpp" #include "CCharacterFactory.hpp" #include "CAnimationManager.hpp" #include "CTransitionManager.hpp" #include "CAdditiveAnimPlayback.hpp" #include "CBoolPOINode.hpp" #include "CInt32POINode.hpp" #include "CParticlePOINode.hpp" #include "CSoundPOINode.hpp" #include "CParticleGenInfo.hpp" #include "IAnimReader.hpp" #include "CAnimTreeNode.hpp" namespace urde { rstl::reserved_vectorCAnimData::g_BoolPOINodes; rstl::reserved_vector CAnimData::g_Int32POINodes; rstl::reserved_vector CAnimData::g_ParticlePOINodes; rstl::reserved_vector CAnimData::g_SoundPOINodes; void CAnimData::FreeCache() { } void CAnimData::InitializeCache() { } CAnimData::CAnimData(ResId id, const CCharacterInfo& character, int defaultAnim, int charIdx, bool loop, const TLockedToken& layout, const TToken& model, const rstl::optional_object>& iceModel, const std::weak_ptr& ctx, const std::shared_ptr& animMgr, const std::shared_ptr& transMgr, const TLockedToken& charFactory) : x0_charFactory(charFactory), xc_charInfo(character), xcc_layoutData(layout), xd8_modelData(model), xfc_animCtx(ctx.lock()), x100_animMgr(animMgr), x1d8_selfId(id), x1fc_transMgr(transMgr), x204_charIdx(charIdx), x208_defaultAnim(defaultAnim), x21c_25_loop(loop), x220_pose(layout->GetSegIdList().GetList().size()), x2f8_poseBuilder(layout) { if (iceModel) xe4_iceModelData = *iceModel; g_BoolPOINodes.resize(8); g_Int32POINodes.resize(16); g_ParticlePOINodes.resize(20); g_SoundPOINodes.resize(20); x108_aabb = xd8_modelData->GetModel()->GetAABB(); x120_particleDB.CacheParticleDesc(xc_charInfo.GetParticleResData()); } ResId CAnimData::GetEventResourceIdForAnimResourceId(ResId id) const { return x0_charFactory->GetEventResourceIdForAnimResourceId(id); } void CAnimData::AddAdditiveSegData(const CSegIdList& list, CSegStatementSet& stSet) { for (std::pair& additive : x1044_additiveAnims) if (additive.second.GetTargetWeight() > 0.00001f) additive.second.AddToSegStatementSet(list, *xcc_layoutData.GetObj(), stSet); } static void AdvanceAnimationTree(std::weak_ptr& anim, const CCharAnimTime& dt) { } void CAnimData::AdvanceAdditiveAnims(float dt) { CCharAnimTime time(dt); for (std::pair& additive : x1044_additiveAnims) { if (additive.second.GetA()) { while (time.GreaterThanZero() && std::fabs(time) >= 0.00001f) { //additive.second.GetAnim()->GetInt32POIList(time, ); } } else { } } } void CAnimData::UpdateAdditiveAnims(float) { } bool CAnimData::IsAdditiveAnimation(u32) const { } std::shared_ptr CAnimData::GetAdditiveAnimationTree(u32) const { } bool CAnimData::IsAdditiveAnimationActive(u32) const { } void CAnimData::DelAdditiveAnimation(u32) { } void CAnimData::AddAdditiveAnimation(u32, float, bool, bool) { } std::shared_ptr CAnimData::GetAnimationManager() { } void CAnimData::SetPhase(float) { } void CAnimData::Touch(const CSkinnedModel& model, int) const { } SAdvancementDeltas CAnimData::GetAdvancementDeltas(const CCharAnimTime& a, const CCharAnimTime& b) const { } CCharAnimTime CAnimData::GetTimeOfUserEvent(EUserEventType, const CCharAnimTime& time) const { } void CAnimData::MultiplyPlaybackRate(float) { } void CAnimData::SetPlaybackRate(float) { } void CAnimData::SetRandomPlaybackRate(CRandom16&) { } void CAnimData::CalcPlaybackAlignmentParms(const CAnimPlaybackParms& parms, const std::weak_ptr& node) { } zeus::CTransform CAnimData::GetLocatorTransform(CSegId id, const CCharAnimTime* time) const { } zeus::CTransform CAnimData::GetLocatorTransform(const std::string& name, const CCharAnimTime* time) const { } bool CAnimData::IsAnimTimeRemaining(float, const std::string& name) const { } float CAnimData::GetAnimTimeRemaining(const std::string& name) const { } float CAnimData::GetAnimationDuration(int) const { } std::shared_ptr CAnimData::GetAnimSysContext() const { } std::shared_ptr CAnimData::GetAnimationManager() const { } void CAnimData::RecalcPoseBuilder(const CCharAnimTime*) const { } void CAnimData::RenderAuxiliary(const CFrustumPlanes& frustum) const { } void CAnimData::Render(const CSkinnedModel& model, const CModelFlags& drawFlags, const rstl::optional_object& morphEffect, const float* morphMagnitudes) const { } void CAnimData::SetupRender(const CSkinnedModel& model, const rstl::optional_object& morphEffect, const float* morphMagnitudes) const { } void CAnimData::PreRender() { } void CAnimData::BuildPose() { } void CAnimData::PrimitiveSetToTokenVector(const std::set& primSet, std::vector& tokensOut) { } void CAnimData::GetAnimationPrimitives(const CAnimPlaybackParms& parms, std::set& primsOut) const { } void CAnimData::SetAnimation(const CAnimPlaybackParms& parms, bool) { } void CAnimData::DoAdvance(float, bool&, CRandom16&, bool) { } SAdvancementDeltas CAnimData::Advance(float, const zeus::CVector3f&, CStateManager& stateMgr, bool) { } SAdvancementDeltas CAnimData::AdvanceIgnoreParticles(float, CRandom16&, bool) { } void CAnimData::AdvanceAnim(CCharAnimTime& time, zeus::CVector3f&, zeus::CQuaternion&) { } void CAnimData::SetXRayModel(const TLockedToken& model, const TLockedToken& skinRules) { } void CAnimData::SetInfraModel(const TLockedToken& model, const TLockedToken& skinRules) { } void CAnimData::PoseSkinnedModel(const CSkinnedModel& model, const CPoseAsTransforms& pose, const rstl::optional_object& morphEffect, const float* morphMagnitudes) const { } void CAnimData::AdvanceParticles(const zeus::CTransform& xf, float, const zeus::CVector3f&, CStateManager& stateMgr) { } void CAnimData::GetAverageVelocity(int) const { } void CAnimData::ResetPOILists() { } CSegId CAnimData::GetLocatorSegId(const std::string& name) const { } zeus::CAABox CAnimData::GetBoundingBox(const zeus::CTransform& xf) const { } zeus::CAABox CAnimData::GetBoundingBox() const { } }