summaryrefslogtreecommitdiff
path: root/ZAPD/ZAnimation.cpp
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2021-10-05 13:55:55 -0300
committerGitHub <noreply@github.com>2021-10-05 12:55:55 -0400
commit4994e732406ffa2942f9c9ea6ff14c424cd0b896 (patch)
tree0b40b20db17139c58f5c205643940494c20cbc43 /ZAPD/ZAnimation.cpp
parent17fca1e0cdda5476c4158940ca405b7eb250ec72 (diff)
ZResource cleanup (#178)
* Add some general use methods to ZResource * change zarray * adapt ztexture * Clean up ZCollision, ZPath, ZScalar and ZVector * cleanup background * cleanup zmtx * Clean up skeleton and limb * mark GetSourceTypeName as abstract * Remove redundant ExtractFromXML * Reorder stuff to minimize changes in github * remove extra ZDisplayList constructor * Remove using namespace tinyxml2; * run formatter * Add some brief descriptions, and remove some methods * Remove trivials GetSourceOutputCode and a bit of cleanup * Add more descriptions to methods * Fix blob build * improve descriptions a bit * Run formatter * Now builds * Add attributes and fix some warnings * format * fix merge issues * fix merge issues and some clang warnings * format * Run formatter * Fix merge issues * Format * add SEGMENTED_NULL * Fix merge issues * Run format * dumb fix * whoops * format * whoops
Diffstat (limited to 'ZAPD/ZAnimation.cpp')
-rw-r--r--ZAPD/ZAnimation.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/ZAPD/ZAnimation.cpp b/ZAPD/ZAnimation.cpp
index d6645d0..ed9a58f 100644
--- a/ZAPD/ZAnimation.cpp
+++ b/ZAPD/ZAnimation.cpp
@@ -1,5 +1,7 @@
#include "ZAnimation.h"
+
#include <utility>
+
#include "Globals.h"
#include "Utils/BitConverter.h"
#include "Utils/File.h"
@@ -284,15 +286,6 @@ void ZCurveAnimation::ParseRawData()
}
}
-void ZCurveAnimation::ExtractFromXML(tinyxml2::XMLElement* reader, uint32_t nRawDataIndex)
-{
- ZResource::ExtractFromXML(reader, nRawDataIndex);
-
- Declaration* decl = parent->AddDeclaration(rawDataIndex, DeclarationAlignment::Align16,
- GetRawDataSize(), GetSourceTypeName(), name, "");
- decl->staticConf = staticConf;
-}
-
void ZCurveAnimation::DeclareReferences(const std::string& prefix)
{
if (refIndex != 0)
@@ -472,15 +465,6 @@ ZLegacyAnimation::ZLegacyAnimation(ZFile* nParent) : ZAnimation(nParent)
{
}
-void ZLegacyAnimation::ExtractFromXML(tinyxml2::XMLElement* reader, uint32_t nRawDataIndex)
-{
- ZAnimation::ExtractFromXML(reader, nRawDataIndex);
-
- Declaration* decl = parent->AddDeclaration(rawDataIndex, DeclarationAlignment::Align4,
- GetRawDataSize(), GetSourceTypeName(), name, "");
- decl->staticConf = staticConf;
-}
-
void ZLegacyAnimation::ParseRawData()
{
ZAnimation::ParseRawData();