diff options
| author | Nicholas Estelami <NEstelami@users.noreply.github.com> | 2021-01-01 19:33:17 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-01 19:33:17 -0500 |
| commit | a29291d139764b251536282b3fd716ffa877e3d7 (patch) | |
| tree | 7a54560af880009942410d3cbf5e01ed378e556c /ZAPD/ZFile.cpp | |
| parent | 1bcccef2c5a3fe0d67778e80aabff7d894ab2168 (diff) | |
Added in support for player animations (#40)
* Added in support for Player Animations
* Fixed up a bunch of non matching issues
Diffstat (limited to 'ZAPD/ZFile.cpp')
| -rw-r--r-- | ZAPD/ZFile.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ZAPD/ZFile.cpp b/ZAPD/ZFile.cpp index 28eb322..fa4f081 100644 --- a/ZAPD/ZFile.cpp +++ b/ZAPD/ZFile.cpp @@ -172,7 +172,19 @@ void ZFile::ParseXML(ZFileMode mode, XMLElement* reader, bool placeholderMode) ZAnimation* anim = nullptr; if (mode == ZFileMode::Extract) - anim = ZAnimation::ExtractFromXML(child, rawData, rawDataIndex, folderName); + anim = ZNormalAnimation::ExtractFromXML(child, rawData, rawDataIndex, folderName); + + anim->parent = this; + resources.push_back(anim); + + rawDataIndex += anim->GetRawDataSize(); + } + else if (string(child->Name()) == "PlayerAnimation") + { + ZLinkAnimation* anim = nullptr; + + if (mode == ZFileMode::Extract) + anim = ZLinkAnimation::ExtractFromXML(child, rawData, rawDataIndex, folderName); anim->parent = this; resources.push_back(anim); |
