diff options
| author | Anghelo Carvajal <angheloalf95@gmail.com> | 2021-03-13 00:34:33 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-12 22:34:33 -0500 |
| commit | 4bf6600a3b67223d5e28d6a1fccfeb54e37d7a77 (patch) | |
| tree | 11b24adcb171e45b0e466d089965fafbdcf82b88 /ZAPD/ZFile.cpp | |
| parent | b7a50c06ecc23f6b17e410cb10a7046ee008a78d (diff) | |
Add horses support (#89)
* Factor common code as a function
Signed-off-by: angie <angheloalf95@gmail.com>
* Add some missing methods and change limbs from structs to classes
Signed-off-by: angie <angheloalf95@gmail.com>
* ZSkeleton::GetRawDataSize
Signed-off-by: angie <angheloalf95@gmail.com>
* add segAddress and fileAddress in ZLimbStandard
Signed-off-by: angie <angheloalf95@gmail.com>
* Move code to ZLimbStandard::GetSourceOutputCode
Signed-off-by: angie <angheloalf95@gmail.com>
* Move code to ZLimbLOD::GetSourceOutputCode and a few fixes
Signed-off-by: angie <angheloalf95@gmail.com>
* Add missing & and reestructure the code a bit.
Signed-off-by: angie <angheloalf95@gmail.com>
* Fix merge issues
Signed-off-by: angie <angheloalf95@gmail.com>
* Move stuff from FromRawData to constructors
Signed-off-by: angie <angheloalf95@gmail.com>
* Merge both Limb classes and refactor
Signed-off-by: angie <angheloalf95@gmail.com>
* Initial SkinLimb support
Signed-off-by: angie <angheloalf95@gmail.com>
* Extract SkinLimb type 11 dlist
Signed-off-by: Angie <angheloalf95@gmail.com>
* Extracting the first struct of SkinLimb
Signed-off-by: Angie <angheloalf95@gmail.com>
* Exporting the dlist of SkinLimb breaks stuff
Signed-off-by: Angie <angheloalf95@gmail.com>
* Add another struct of skinlimb
Signed-off-by: Angie <angheloalf95@gmail.com>
* Parse Struct_800A598C_2
Signed-off-by: Angie <angheloalf95@gmail.com>
* Parse Struct_800A57C0
Signed-off-by: Angie <angheloalf95@gmail.com>
* Extract sublimbs as array
Signed-off-by: Angie <angheloalf95@gmail.com>
* Export the full array of Struct_800A5E28
Signed-off-by: Angie <angheloalf95@gmail.com>
* A few stylistic changes
Signed-off-by: angie <angheloalf95@gmail.com>
* a bit of cleanup
Signed-off-by: angie <angheloalf95@gmail.com>
* ZSkeleton::ParseXML
Signed-off-by: angie <angheloalf95@gmail.com>
* ZSkeleton::ParseRawData()
Signed-off-by: Angie <angheloalf95@gmail.com>
* Move the code around a bit
Signed-off-by: Angie <angheloalf95@gmail.com>
* Remove ZSkeletonType::Skin
Signed-off-by: Angie <angheloalf95@gmail.com>
* class Struct_800A57C0
Signed-off-by: Angie <angheloalf95@gmail.com>
* class Struct_800A598C_2
Signed-off-by: Angie <angheloalf95@gmail.com>
* class Struct_800A598C and class Struct_800A5E28
Signed-off-by: angie <angheloalf95@gmail.com>
* MakeInternalDeclarations
Signed-off-by: angie <angheloalf95@gmail.com>
* Move limbs to ZLimb
Signed-off-by: Angie <angheloalf95@gmail.com>
* A bit of cleanup
Signed-off-by: angie <angheloalf95@gmail.com>
* Works, but something is wrong...
Signed-off-by: angie <angheloalf95@gmail.com>
* Final cleanup
Signed-off-by: angie <angheloalf95@gmail.com>
* I hope this is the final cleanup
Signed-off-by: angie <angheloalf95@gmail.com>
Diffstat (limited to 'ZAPD/ZFile.cpp')
| -rw-r--r-- | ZAPD/ZFile.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ZAPD/ZFile.cpp b/ZAPD/ZFile.cpp index 220ba11..5046ed1 100644 --- a/ZAPD/ZFile.cpp +++ b/ZAPD/ZFile.cpp @@ -4,6 +4,7 @@ #include "ZRoom/ZRoom.h" #include "ZTexture.h" #include "ZAnimation.h" +#include "ZLimb.h" #include "ZSkeleton.h" #include "ZCollision.h" #include "ZScalar.h" @@ -237,10 +238,10 @@ void ZFile::ParseXML(ZFileMode mode, XMLElement* reader, std::string filename, b } else if (string(child->Name()) == "Limb") { - ZLimbStandard* limb = nullptr; + ZLimb* limb = nullptr; if (mode == ZFileMode::Extract) - limb = ZLimbStandard::FromXML(child, rawData, rawDataIndex, folderName, this); + limb = ZLimb::FromXML(child, rawData, rawDataIndex, folderName, this); resources.push_back(limb); |
