mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 07:30:01 +00:00
55 lines
1.2 KiB
C++
55 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include "BaseModelInfo.h"
|
|
|
|
struct RwObjectNameIdAssocation
|
|
{
|
|
const char *name;
|
|
int32 hierId;
|
|
uint32 flags;
|
|
};
|
|
|
|
struct RwObjectNameAssociation
|
|
{
|
|
const char *name;
|
|
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) {}
|
|
CClumpModelInfo(ModelInfoType id) : CBaseModelInfo(id) {}
|
|
~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);
|
|
};
|
|
|
|
VALIDATE_SIZE(CClumpModelInfo, 0x34);
|