summaryrefslogtreecommitdiff
path: root/include/Actor/ActorType.hpp
blob: cb9e840c8a6682e67fd96e4f2d4c64cdb8fcec8f (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
#pragma once

#include "global.h"
#include "types.h"

#include "Actor/Actor.hpp"
#include "Actor/ActorTypeId.hpp"

class ActorType_UnkClass {
public:
    /* 0 */ u32 mUnk_0;
    /* 4 */ s32 mUnk_4;
    /* 8 */

    ActorType_UnkClass(u32 unk_00, u32 unk_04) :
        mUnk_0(unk_00),
        mUnk_4(unk_04) {}
};

typedef Actor *(*ActorCreateFunc)();

struct ActorType {
    /* 00 */ ActorTypeId id;
    /* 04 */ ActorCreateFunc create;
    /* 08 */ unk32 (*unk_08)();
    /* 0c */ unk32 unk_0c;
    /* 10 */ ActorType *next;
    /* 14 */

    inline ActorType() {}
    ActorType(ActorTypeId id, ActorCreateFunc create, unk32 (*unk_08)());
    ~ActorType();
    unk32 func_0203e7c8();
    void Register();
    void Unregister();
    static ActorType *Find(ActorTypeId id);
};

struct ActorTypeList {
    /* 0 */ ActorType *head;
    /* 4 */ ActorType *tail;
    /* 8 */
};