summaryrefslogtreecommitdiff
path: root/ZAPD/ZAnimation.h
diff options
context:
space:
mode:
authorYanis42 <35189056+Yanis42@users.noreply.github.com>2023-10-17 05:56:49 +0200
committerGitHub <noreply@github.com>2023-10-16 23:56:49 -0400
commit094e797349c86d0baef4a624962f4287aefdfef2 (patch)
treeee08bc4d0cba7fe53732d056627532bb2ffd605d /ZAPD/ZAnimation.h
parent338e35f89afc905399ad90c952d154ae7b20bf75 (diff)
Update old names to newer ones (#305)JackMaster
* JointKey -> LegacyJointKey * CamData -> BgCamInfo * TransformData -> CurveInterpKnot * TransformUpdateIndex -> CurveAnimationHeader * SkelCurveLimbList -> CurveSkeletonHeader * LightSettings -> EnvLightSettings * EntranceEntry -> Spawn * PolygonDlist -> RoomShapeDListsEntry * PolygonType0 -> RoomShapeNormal, MeshHeader1Single -> RoomShapeImageSingle * BgImage -> RoomShapeImageMultiBgEntry * MeshHeader1Multi -> RoomShapeImageMulti PolygonDlist2 -> RoomShapeCullableEntry * PolygonType2 -> RoomShapeCullable * SCENE_CMD_MESH -> SCENE_CMD_ROOM_SHAPE * implement enum parsing + use NaviQuestHintFileId * Struct_800A57C0 -> SkinVertex * Struct_800A598C_2 -> SkinTransformation * Struct_800A5E28 -> SkinAnimatedLimbData * Struct_800A598C -> SkinLimbModif * fix MM issues * LinkAnimationHeader -> PlayerAnimationHeader (MM) * CsCameraEntry -> ActorCsCamInfo (MM) * remaining scene commands (MM) * format * removed useless comment * name skinlimb members * format * fixed indentation
Diffstat (limited to 'ZAPD/ZAnimation.h')
-rw-r--r--ZAPD/ZAnimation.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/ZAPD/ZAnimation.h b/ZAPD/ZAnimation.h
index 2c04b4f..643842b 100644
--- a/ZAPD/ZAnimation.h
+++ b/ZAPD/ZAnimation.h
@@ -67,7 +67,7 @@ public:
void ParseRawData() override;
};
-class TransformData
+class CurveInterpKnot
{
protected:
ZFile* parent;
@@ -84,10 +84,10 @@ protected:
float unk_08;
public:
- TransformData() = default;
- TransformData(ZFile* parent, const std::vector<uint8_t>& rawData, uint32_t fileOffset);
- TransformData(ZFile* parent, const std::vector<uint8_t>& rawData, uint32_t fileOffset,
- size_t index);
+ CurveInterpKnot() = default;
+ CurveInterpKnot(ZFile* parent, const std::vector<uint8_t>& rawData, uint32_t fileOffset);
+ CurveInterpKnot(ZFile* parent, const std::vector<uint8_t>& rawData, uint32_t fileOffset,
+ size_t index);
[[nodiscard]] std::string GetBody(const std::string& prefix) const;
@@ -102,7 +102,7 @@ protected:
///* 0x0000 */ u8* refIndex;
segptr_t refIndex = 0;
- ///* 0x0004 */ TransformData* transformData;
+ ///* 0x0004 */ CurveInterpKnot* transformData;
segptr_t transformData = 0;
///* 0x0008 */ s16* copyValues;
segptr_t copyValues = 0;
@@ -114,7 +114,7 @@ protected:
uint8_t limbCount = 0;
std::vector<uint8_t> refIndexArr;
- std::vector<TransformData> transformDataArr;
+ std::vector<CurveInterpKnot> transformDataArr;
std::vector<int16_t> copyValuesArr;
public:
@@ -132,14 +132,14 @@ public:
std::string GetSourceTypeName() const override;
};
-// TransformUpdateIndex
+// CurveAnimationHeader
/* ZLegacyAnimation */
-class JointKey : public ZResource
+class LegacyJointKey : public ZResource
{
public:
- JointKey(ZFile* nParent);
+ LegacyJointKey(ZFile* nParent);
void ParseRawData() override;
std::string GetBodySourceCode() const override;
@@ -172,8 +172,8 @@ public:
protected:
int16_t limbCount;
segptr_t frameData; // s16*
- segptr_t jointKey; // JointKey*
+ segptr_t jointKey; // LegacyJointKey*
std::vector<uint16_t> frameDataArray;
- std::vector<JointKey> jointKeyArray;
+ std::vector<LegacyJointKey> jointKeyArray;
};