summaryrefslogtreecommitdiff
path: root/ZAPD/ZLimb.h
diff options
context:
space:
mode:
Diffstat (limited to 'ZAPD/ZLimb.h')
-rw-r--r--ZAPD/ZLimb.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ZAPD/ZLimb.h b/ZAPD/ZLimb.h
index 5de5276..b75236f 100644
--- a/ZAPD/ZLimb.h
+++ b/ZAPD/ZLimb.h
@@ -18,9 +18,14 @@ enum class ZLimbType
Legacy,
};
+class ZLimbTable;
+
class ZLimb : public ZResource
{
public:
+ std::string enumName;
+ ZLimbTable* limbsTable = nullptr; // borrowed pointer, do not delete!
+
ZLimbType type = ZLimbType::Standard;
ZLimbSkinType skinSegmentType = ZLimbSkinType::SkinType_0; // Skin only
@@ -39,6 +44,8 @@ public:
int16_t transX = 0, transY = 0, transZ = 0;
uint8_t childIndex = 0, siblingIndex = 0;
+ uint8_t limbIndex = 0;
+
ZLimb(ZFile* nParent);
void ExtractFromBinary(uint32_t nRawDataIndex, ZLimbType nType);
@@ -59,6 +66,8 @@ public:
static const char* GetSourceTypeName(ZLimbType limbType);
static ZLimbType GetTypeByAttributeName(const std::string& attrName);
+ void SetLimbIndex(uint8_t nLimbIndex);
+
protected:
void DeclareDList(segptr_t dListSegmentedPtr, const std::string& prefix,
const std::string& limbSuffix);