summaryrefslogtreecommitdiffstats
path: root/src/modelinfo/ClumpModelInfo.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-10 11:20:27 +0200
committeraap <aap@papnet.eu>2020-05-10 11:20:27 +0200
commit1b936f6ffbe71e2c44ef1a5b5d5e7a24801434c7 (patch)
tree42c2506c438da719dd82a007d7cd620c71ec1b4e /src/modelinfo/ClumpModelInfo.h
parentMerge branch 'miami' of github.com:GTAmodding/re3 into miami (diff)
downloadre3-1b936f6ffbe71e2c44ef1a5b5d5e7a24801434c7.tar
re3-1b936f6ffbe71e2c44ef1a5b5d5e7a24801434c7.tar.gz
re3-1b936f6ffbe71e2c44ef1a5b5d5e7a24801434c7.tar.bz2
re3-1b936f6ffbe71e2c44ef1a5b5d5e7a24801434c7.tar.lz
re3-1b936f6ffbe71e2c44ef1a5b5d5e7a24801434c7.tar.xz
re3-1b936f6ffbe71e2c44ef1a5b5d5e7a24801434c7.tar.zst
re3-1b936f6ffbe71e2c44ef1a5b5d5e7a24801434c7.zip
Diffstat (limited to 'src/modelinfo/ClumpModelInfo.h')
-rw-r--r--src/modelinfo/ClumpModelInfo.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/modelinfo/ClumpModelInfo.h b/src/modelinfo/ClumpModelInfo.h
index bf756e67..0113d340 100644
--- a/src/modelinfo/ClumpModelInfo.h
+++ b/src/modelinfo/ClumpModelInfo.h
@@ -30,9 +30,13 @@ class CClumpModelInfo : public CBaseModelInfo
{
public:
RpClump *m_clump;
+ union {
+ int32 m_animFileIndex;
+ char *m_animFileName;
+ };
- CClumpModelInfo(void) : CBaseModelInfo(MITYPE_CLUMP) {}
- CClumpModelInfo(ModelInfoType id) : CBaseModelInfo(id) {}
+ CClumpModelInfo(void) : CBaseModelInfo(MITYPE_CLUMP) { m_animFileIndex = -1; }
+ CClumpModelInfo(ModelInfoType id) : CBaseModelInfo(id) { m_animFileIndex = -1; }
~CClumpModelInfo() {}
void DeleteRwObject(void);
RwObject *CreateInstance(void);
@@ -40,6 +44,9 @@ public:
RwObject *GetRwObject(void) { return (RwObject*)m_clump; }
virtual void SetClump(RpClump *);
+ virtual void SetAnimFile(const char *file);
+ virtual void ConvertAnimFileIndex(void);
+ virtual int GetAnimFileIndex(void) { return m_animFileIndex; }
static RpAtomic *SetAtomicRendererCB(RpAtomic *atomic, void *data);
void SetFrameIds(RwObjectNameIdAssocation *assocs);