Files
wii-ipl/include/system/iplNigaoe.h
2026-03-15 13:32:23 +00:00

72 lines
1.9 KiB
C++

#ifndef IPL_NIGAOE_H
#define IPL_NIGAOE_H
#include "nw4r/ut/list.h"
#include <decomp.h>
#include <revolution.h>
#include <nw4r/ut.h>
#include <egg/core.h>
#include <RVLFaceLib.h>
#include <RVLFaceLibInternal.h>
namespace ipl {
namespace nigaoe {
class Object {
public:
typedef void (*MakeIconCallback)(Object*, void*);
Object(EGG::Heap* heap, int width, int height, int faceId, MakeIconCallback callback, void* callbackWork);
Object(EGG::Heap* heap, int width, int height, RFLiCharData* faceData, MakeIconCallback callback, void* callbackWork);
~Object();
const wchar_t* getName() const {
wchar_t* faceName;
int faceId = mFaceId;
if (faceId >= 0) {
RFLiCharData* charData = RFLiGetCharData(faceId);
faceName = (wchar_t*)charData->name;
} else {
faceName = NULL;
}
return faceName;
}
const GXTexObj& getIconTexture() const { return mFaceTexObj; }
u32 getIndex() const { return mFaceId; }
BOOL created() const { return mbCreated; }
private:
void init(EGG::Heap* heap, int width, int height);
void make_icon();
u8* mpIconTex; // 0x00
u32 mIconSize; // 0x04
RFLIconSetting mIconSettings; // 0x08
GXTexObj mFaceTexObj; // 0x18
RFLiCharData* mpCharData; // 0x38
u32 mFaceId; // 0x3C
MakeIconCallback mCallBack; // 0x40
void* mpCallBackWork; // 0x44
public:
nw4r::ut::Link mLink; // 0x48
private:
bool mbCreated; // 0x50
friend class Manager;
};
} // namespace nigaoe
} // namespace ipl
#endif // IPL_NIGAOE_H