mirror of
https://github.com/zeldaret/ss
synced 2026-09-03 18:03:48 -04:00
Initial OK
This commit is contained in:
@@ -16,33 +16,7 @@
|
||||
#include "m/m_mtx.h"
|
||||
#include "m/m_vec.h"
|
||||
#include "m/types_m.h"
|
||||
|
||||
// Ghidra has it as `unk_ActorObjectBase`
|
||||
struct LightingInfo {
|
||||
/* 0x00 */ u8 mField_0x00[0x40 - 0x00];
|
||||
/* 0x40 */ mColor mTev0Color;
|
||||
/* 0x44 */ mColor mTev1Color;
|
||||
/* 0x48 */ mColor mTev2Color;
|
||||
/* 0x4C */ mColor mTevPrevColor;
|
||||
/* 0x50 */ mColor mTevK0Color;
|
||||
/* 0x54 */ mColor mTevK1Color;
|
||||
/* 0x58 */ mColor mTevK2Color;
|
||||
/* 0x5C */ mColor mTevK3Color;
|
||||
/* 0x60 */ u8 mLightingCode;
|
||||
/* 0x61 */ u8 _0x61;
|
||||
/* 0x62 */ u8 _0x62;
|
||||
/* 0x63 */ u8 _0x63;
|
||||
/* 0x64 */ u8 _0x64;
|
||||
/* 0x65 */ bool mUseTev0;
|
||||
/* 0x66 */ bool mUseTev1;
|
||||
/* 0x67 */ bool mUseTev2;
|
||||
/* 0x68 */ bool mUseTevPrev;
|
||||
/* 0x69 */ bool mUseTevK0;
|
||||
/* 0x6A */ bool mUseTevK1;
|
||||
/* 0x6B */ bool mUseTevK2;
|
||||
/* 0x6C */ bool mUseTevK3;
|
||||
/* 0x6D */ u8 mField_0x69[0x70 - 0x6D];
|
||||
};
|
||||
#include "toBeSorted/blur_and_palette_manager.h"
|
||||
|
||||
// Ghidra: ActorObjectBase
|
||||
// size: 0x330
|
||||
@@ -76,7 +50,7 @@ public:
|
||||
/* 0x208 */ mAng3_c mStartingRot;
|
||||
/* 0x210 */ dLinkage_c mLinkage;
|
||||
/* 0x2B8 */ u32 mField_0x2B8;
|
||||
/* 0x2BC */ LightingInfo mLightingInfo;
|
||||
/* 0x2BC */ ActorLighting mLightingInfo;
|
||||
/* 0x32C */ u32 mField_0x32C;
|
||||
|
||||
public:
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
#ifndef D_OBJ_LIGHT_H
|
||||
#define D_OBJ_LIGHT_H
|
||||
|
||||
#include "d/d_base.h"
|
||||
#include "f/f_base.h"
|
||||
#include "m/m_color.h"
|
||||
#include "toBeSorted/d_emitter.h"
|
||||
|
||||
struct UnkLightThing /* : Inheritance Chain TODO */ {
|
||||
UnkLightThing();
|
||||
virtual ~UnkLightThing();
|
||||
|
||||
/* 0x04 */ u8 _0x04[0x40 - 0x04];
|
||||
};
|
||||
class dObjLight_c : public dBase_c {
|
||||
public:
|
||||
dObjLight_c();
|
||||
|
||||
virtual ~dObjLight_c() {}
|
||||
virtual int create() override;
|
||||
virtual int doDelete() override;
|
||||
virtual int execute() override;
|
||||
virtual int draw() override;
|
||||
|
||||
public:
|
||||
static bool CreateInstance();
|
||||
static dObjLight_c *GetInstance();
|
||||
|
||||
mColor &GetColor0x68();
|
||||
mColor &GetColor0x6C();
|
||||
mColor &GetColor0x100();
|
||||
mColor &GetColor0x104();
|
||||
|
||||
private:
|
||||
/* 0x068 */ mColor field_0x68[1][3];
|
||||
/* 0x074 */ EffectsStruct mEff;
|
||||
/* 0x0A8 */ u8 _0xA8[0xB4 - 0xA8];
|
||||
/* 0x0B4 */ mColor field_0xB4;
|
||||
/* 0x0B8 */ u8 _0xB8[0xD0 - 0xB8];
|
||||
/* 0x0D0 */ mColor field_0xD0;
|
||||
/* 0x0D4 */ u8 _0xD4[0x100 - 0xD4];
|
||||
/* 0x100 */ mColor field_0x100;
|
||||
/* 0x104 */ mColor field_0x104;
|
||||
/* 0x108 */ u8 _0x108[0x10C - 0x108];
|
||||
/* 0x10C */ UnkLightThing field_0x10C[8];
|
||||
|
||||
private:
|
||||
static dObjLight_c sInstance;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user