summaryrefslogtreecommitdiff
path: root/include/toBeSorted/event.h
blob: 68ff6e6889547049b52e2ac59bd7dee069408aa0 (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
#ifndef EVENT_H
#define EVENT_H

#include "common.h"

class Event {
public:
    void *unk;
    u32 eventFlags;
    s32 roomid;
    s32 toolDataid;
    char eventName[32];
    void *eventZevData;
    void *callback1;
    void *callback2;

public:
    static u32 makeEventFlag(const u32 &clearMask, const u32 &unsetBits) {
        return clearMask & ~unsetBits;
    }

    /** 0x800A0C40 */
    Event(const char *eventName, u32 unk, u32 eventFlags, void *callback1, void *callback2);
    Event(u32 eventId, s32 roomId, u32 eventFlags, void *callback1, void *callback2);
    Event(const char *eventName, void *zevDat, u32 unk, u32 eventFlags, void *callback1, void *callback2);
    /** 0x800A1240 */
    virtual ~Event();
};

#endif