mirror of https://github.com/AxioDL/metaforce.git
249 lines
5.5 KiB
C++
249 lines
5.5 KiB
C++
#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 "IAnimReader.hpp"
|
|
|
|
namespace urde
|
|
{
|
|
|
|
void CAnimData::FreeCache()
|
|
{
|
|
}
|
|
|
|
void CAnimData::InitializeCache()
|
|
{
|
|
}
|
|
|
|
CAnimData::CAnimData(ResId id,
|
|
const CCharacterInfo& character,
|
|
int defaultAnim, int charIdx, bool loop,
|
|
const TLockedToken<CCharLayoutInfo>& layout,
|
|
const TToken<CSkinnedModel>& model,
|
|
const std::experimental::optional<TToken<CMorphableSkinnedModel>>& iceModel,
|
|
const std::weak_ptr<CAnimSysContext>& ctx,
|
|
const std::shared_ptr<CAnimationManager>& animMgr,
|
|
const std::shared_ptr<CTransitionManager>& transMgr,
|
|
const TLockedToken<CCharacterFactory>& 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;
|
|
}
|
|
|
|
ResId CAnimData::GetEventResourceIdForAnimResourceId(ResId id) const
|
|
{
|
|
return x0_charFactory->GetEventResourceIdForAnimResourceId(id);
|
|
}
|
|
|
|
void CAnimData::AddAdditiveSegData(const CSegIdList& list, CSegStatementSet& stSet)
|
|
{
|
|
}
|
|
|
|
void CAnimData::AdvanceAdditiveAnims(float)
|
|
{
|
|
}
|
|
|
|
void CAnimData::UpdateAdditiveAnims(float)
|
|
{
|
|
}
|
|
|
|
bool CAnimData::IsAdditiveAnimation(u32) const
|
|
{
|
|
}
|
|
|
|
std::shared_ptr<CAnimTreeNode> CAnimData::GetAdditiveAnimationTree(u32) const
|
|
{
|
|
}
|
|
|
|
bool CAnimData::IsAdditiveAnimationActive(u32) const
|
|
{
|
|
}
|
|
|
|
void CAnimData::DelAdditiveAnimation(u32)
|
|
{
|
|
}
|
|
|
|
void CAnimData::AddAdditiveAnimation(u32, float, bool, bool)
|
|
{
|
|
}
|
|
|
|
std::shared_ptr<CAnimationManager> 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<CAnimTreeNode>& 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<CAnimSysContext> CAnimData::GetAnimSysContext() const
|
|
{
|
|
}
|
|
|
|
std::shared_ptr<CAnimationManager> 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 std::experimental::optional<CVertexMorphEffect>& morphEffect,
|
|
const float* morphMagnitudes) const
|
|
{
|
|
}
|
|
|
|
void CAnimData::SetupRender(const CSkinnedModel& model,
|
|
const std::experimental::optional<CVertexMorphEffect>& morphEffect,
|
|
const float* morphMagnitudes) const
|
|
{
|
|
}
|
|
|
|
void CAnimData::PreRender()
|
|
{
|
|
}
|
|
|
|
void CAnimData::BuildPose()
|
|
{
|
|
}
|
|
|
|
void CAnimData::PrimitiveSetToTokenVector(const std::set<CPrimitive>& primSet, std::vector<CToken>& tokensOut)
|
|
{
|
|
}
|
|
|
|
void CAnimData::GetAnimationPrimitives(const CAnimPlaybackParms& parms, std::set<CPrimitive>& 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<CModel>& model, const TLockedToken<CSkinRules>& skinRules)
|
|
{
|
|
}
|
|
|
|
void CAnimData::SetInfraModel(const TLockedToken<CModel>& model, const TLockedToken<CSkinRules>& skinRules)
|
|
{
|
|
}
|
|
|
|
void CAnimData::PoseSkinnedModel(const CSkinnedModel& model, const CPoseAsTransforms& pose,
|
|
const std::experimental::optional<CVertexMorphEffect>& 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
|
|
{
|
|
}
|
|
|
|
}
|