2019-05-15 10:52:37 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "BaseModelInfo.h"
|
|
|
|
|
|
|
|
struct RwObjectNameIdAssocation
|
|
|
|
{
|
2019-08-16 14:17:15 -04:00
|
|
|
const char *name;
|
2019-05-15 10:52:37 -04:00
|
|
|
int32 hierId;
|
|
|
|
uint32 flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct RwObjectNameAssociation
|
|
|
|
{
|
2019-08-16 14:17:15 -04:00
|
|
|
const char *name;
|
2019-05-15 10:52:37 -04:00
|
|
|
RwFrame *frame;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct RwObjectIdAssociation
|
|
|
|
{
|
|
|
|
int32 id;
|
|
|
|
RwFrame *frame;
|
|
|
|
};
|
|
|
|
|
|
|
|
enum {
|
|
|
|
CLUMP_FLAG_NO_HIERID = 0x1,
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class CClumpModelInfo : public CBaseModelInfo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
RpClump *m_clump;
|
|
|
|
|
|
|
|
CClumpModelInfo(void) : CBaseModelInfo(MITYPE_CLUMP) {}
|
2020-05-05 08:13:09 -04:00
|
|
|
CClumpModelInfo(ModelInfoType id) : CBaseModelInfo(id) {}
|
2019-05-15 10:52:37 -04:00
|
|
|
~CClumpModelInfo() {}
|
|
|
|
void DeleteRwObject(void);
|
|
|
|
RwObject *CreateInstance(void);
|
|
|
|
RwObject *CreateInstance(RwMatrix *);
|
|
|
|
RwObject *GetRwObject(void) { return (RwObject*)m_clump; }
|
|
|
|
|
|
|
|
virtual void SetClump(RpClump *);
|
|
|
|
|
|
|
|
static RpAtomic *SetAtomicRendererCB(RpAtomic *atomic, void *data);
|
|
|
|
void SetFrameIds(RwObjectNameIdAssocation *assocs);
|
|
|
|
static RwFrame *FindFrameFromNameCB(RwFrame *frame, void *data);
|
|
|
|
static RwFrame *FindFrameFromNameWithoutIdCB(RwFrame *frame, void *data);
|
|
|
|
static RwFrame *FindFrameFromIdCB(RwFrame *frame, void *data);
|
|
|
|
static void FillFrameArray(RpClump *clump, RwFrame **frames);
|
|
|
|
static RwFrame *FillFrameArrayCB(RwFrame *frame, void *data);
|
|
|
|
static RwFrame *GetFrameFromId(RpClump *clump, int32 id);
|
|
|
|
};
|
2020-05-10 09:54:37 -04:00
|
|
|
|
2020-05-10 11:49:33 -04:00
|
|
|
VALIDATE_SIZE(CClumpModelInfo, 0x34);
|