summaryrefslogtreecommitdiff
path: root/include/d/d_obj_light.h
blob: 7e02c7b21061864259b73818221b44a609f370cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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 */ dEmitter_c 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