Start moving animation related class headers to Kyoto where appropriate

Former-commit-id: 5ec6adb7c3
This commit is contained in:
Phillip Stephens 2022-12-09 11:38:20 -08:00
parent e141569f99
commit d6b59eabc8
12 changed files with 19 additions and 17 deletions

View File

@ -497,7 +497,7 @@ LIBS = [
"Kyoto/Animation/CPASAnimState", "Kyoto/Animation/CPASAnimState",
"Kyoto/Animation/CPASDatabase", "Kyoto/Animation/CPASDatabase",
"Kyoto/Animation/CPASParmInfo", "Kyoto/Animation/CPASParmInfo",
"Kyoto/Animation/CPrimitive", ["Kyoto/Animation/CPrimitive", True],
"Kyoto/Animation/CSequenceHelper", "Kyoto/Animation/CSequenceHelper",
["Kyoto/Animation/CTransition", True], ["Kyoto/Animation/CTransition", True],
"Kyoto/Animation/CTransitionManager", "Kyoto/Animation/CTransitionManager",
@ -528,7 +528,7 @@ LIBS = [
"Kyoto/Animation/CHierarchyPoseBuilder", "Kyoto/Animation/CHierarchyPoseBuilder",
"Kyoto/Animation/CInt32POINode", "Kyoto/Animation/CInt32POINode",
"Kyoto/Animation/CParticlePOINode", "Kyoto/Animation/CParticlePOINode",
"Kyoto/Animation/CPOINode", ["Kyoto/Animation/CPOINode", False],
"Kyoto/Animation/CSegStatementSet", "Kyoto/Animation/CSegStatementSet",
"Kyoto/Animation/CTimeScaleFunctions", "Kyoto/Animation/CTimeScaleFunctions",
"Kyoto/Animation/IAnimReader", "Kyoto/Animation/IAnimReader",
@ -682,7 +682,7 @@ LIBS = [
"Kyoto/Audio/CDSPStreamManager", "Kyoto/Audio/CDSPStreamManager",
"Kyoto/CDependencyGroup", "Kyoto/CDependencyGroup",
"Kyoto/Audio/CStreamAudioManager", "Kyoto/Audio/CStreamAudioManager",
"Kyoto/Animation/CHalfTransition", ["Kyoto/Animation/CHalfTransition", True],
"Kyoto/Particles/CElectricDescription", "Kyoto/Particles/CElectricDescription",
"Kyoto/Particles/CSwooshDescription", "Kyoto/Particles/CSwooshDescription",
"Kyoto/Particles/CGenDescription", "Kyoto/Particles/CGenDescription",

View File

@ -3,7 +3,7 @@
#include "types.h" #include "types.h"
#include "MetroidPrime/CEffectComponent.hpp" #include "Kyoto/Animation/CEffectComponent.hpp"
#include "Kyoto/Animation/CPASDatabase.hpp" #include "Kyoto/Animation/CPASDatabase.hpp"
#include "Kyoto/IObjectStore.hpp" #include "Kyoto/IObjectStore.hpp"

View File

@ -3,7 +3,7 @@
#include "types.h" #include "types.h"
#include "MetroidPrime/CParticleData.hpp" #include "Kyoto/Animation/CParticleData.hpp"
class CEffectComponent { class CEffectComponent {
private: private:

View File

@ -3,8 +3,8 @@
#include "types.h" #include "types.h"
#include "MetroidPrime/CCharAnimTime.hpp" #include "Kyoto/Animation/CCharAnimTime.hpp"
#include "MetroidPrime/CParticleData.hpp" #include "Kyoto/Animation/CParticleData.hpp"
#include "rstl/string.hpp" #include "rstl/string.hpp"

View File

@ -5,8 +5,10 @@
#include "rstl/string.hpp" #include "rstl/string.hpp"
class CInputStream;
class CPrimitive { class CPrimitive {
public: public:
CPrimitive(CInputStream& in);
CAssetId GetAnimResId() const { return x0_animId; } CAssetId GetAnimResId() const { return x0_animId; }
private: private:

View File

@ -4,8 +4,7 @@
#include "Kyoto/Math/CVector3f.hpp" #include "Kyoto/Math/CVector3f.hpp"
#include "Kyoto/Math/CQuaternion.hpp" #include "Kyoto/Math/CQuaternion.hpp"
// TODO: wrong module? #include "Kyoto/Animation/CCharAnimTime.hpp"
#include "MetroidPrime/CCharAnimTime.hpp"
#include "rstl/string.hpp" #include "rstl/string.hpp"

View File

@ -6,13 +6,13 @@
#include "MetroidPrime/ActorCommon.hpp" #include "MetroidPrime/ActorCommon.hpp"
#include "MetroidPrime/CAdditiveAnimPlayback.hpp" #include "MetroidPrime/CAdditiveAnimPlayback.hpp"
#include "MetroidPrime/CAnimPlaybackParms.hpp" #include "MetroidPrime/CAnimPlaybackParms.hpp"
#include "MetroidPrime/CCharAnimTime.hpp" #include "Kyoto/Animation/CCharacterInfo.hpp"
#include "MetroidPrime/CCharacterInfo.hpp"
#include "MetroidPrime/CHierarchyPoseBuilder.hpp" #include "MetroidPrime/CHierarchyPoseBuilder.hpp"
#include "MetroidPrime/CPOINode.hpp" #include "Kyoto/Animation/CPOINode.hpp"
#include "MetroidPrime/CParticleDatabase.hpp" #include "MetroidPrime/CParticleDatabase.hpp"
#include "MetroidPrime/CPoseAsTransforms.hpp" #include "MetroidPrime/CPoseAsTransforms.hpp"
#include "Kyoto/Animation/CCharAnimTime.hpp"
#include "Kyoto/Animation/CSkinnedModel.hpp" #include "Kyoto/Animation/CSkinnedModel.hpp"
#include "Kyoto/TToken.hpp" #include "Kyoto/TToken.hpp"

View File

@ -1,7 +1,7 @@
#ifndef _CPARTICLEGENINFO #ifndef _CPARTICLEGENINFO
#define _CPARTICLEGENINFO #define _CPARTICLEGENINFO
#include "MetroidPrime/CParticleData.hpp" #include "Kyoto/Animation/CParticleData.hpp"
#include "MetroidPrime/TGameTypes.hpp" #include "MetroidPrime/TGameTypes.hpp"

View File

@ -4,10 +4,10 @@
#include "MetroidPrime/CActor.hpp" #include "MetroidPrime/CActor.hpp"
#include "MetroidPrime/CAnimData.hpp" #include "MetroidPrime/CAnimData.hpp"
#include "MetroidPrime/CAnimPlaybackParms.hpp" #include "MetroidPrime/CAnimPlaybackParms.hpp"
#include "MetroidPrime/CCharAnimTime.hpp"
#include "MetroidPrime/CPhysicsActor.hpp" #include "MetroidPrime/CPhysicsActor.hpp"
#include "MetroidPrime/CStateManager.hpp" #include "MetroidPrime/CStateManager.hpp"
#include "Kyoto/Animation/CCharAnimTime.hpp"
#include "Kyoto/Animation/CPASAnimParmData.hpp" #include "Kyoto/Animation/CPASAnimParmData.hpp"
#include "Kyoto/Animation/CPASDatabase.hpp" #include "Kyoto/Animation/CPASDatabase.hpp"
@ -122,8 +122,9 @@ void CBSAttack::UpdatePhysicsActor(CBodyController& bc, float dt) {
CVector3f delta = x20_targetPos - act->GetTranslation(); CVector3f delta = x20_targetPos - act->GetTranslation();
const float dur = x30_alignTargetPosTime - x2c_alignTargetPosStartTime; const float dur = x30_alignTargetPosTime - x2c_alignTargetPosStartTime;
CVector3f deltaMod = (dur > 0.f) ? (delta * (dt / dur)) : delta; CVector3f deltaMod = (dur > 0.f) ? (delta * (dt / dur)) : delta;
CVector3f impulse = act->GetMoveToORImpulseWR(act->GetTransform().TransposeRotate(deltaMod), dt); CVector3f impulse =
act->GetMoveToORImpulseWR(act->GetTransform().TransposeRotate(deltaMod), dt);
act->ApplyImpulseWR(impulse, CAxisAngle::Identity()); act->ApplyImpulseWR(impulse, CAxisAngle::Identity());
} }
} }

View File

@ -3,7 +3,7 @@
#include "MetroidPrime/CCollisionActorManager.hpp" #include "MetroidPrime/CCollisionActorManager.hpp"
#include "MetroidPrime/CGameCollision.hpp" #include "MetroidPrime/CGameCollision.hpp"
#include "MetroidPrime/CHealthInfo.hpp" #include "MetroidPrime/CHealthInfo.hpp"
#include "MetroidPrime/CPOINode.hpp" #include "Kyoto/Animation/CPOINode.hpp"
#include "MetroidPrime/CRumbleManager.hpp" #include "MetroidPrime/CRumbleManager.hpp"
#include "MetroidPrime/Player/CPlayer.hpp" #include "MetroidPrime/Player/CPlayer.hpp"
#include "MetroidPrime/Weapons/CBeamProjectile.hpp" #include "MetroidPrime/Weapons/CBeamProjectile.hpp"