summaryrefslogtreecommitdiff
path: root/src/object/chestSpawner.c
blob: 3f7e6006a33d19a6554e0c986930d09740b86537 (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
#include "global.h"
#include "entity.h"

extern void sub_080842D8(Entity*);
extern void sub_08078828(Entity*);
extern void sub_08083E20(Entity*);

extern void (*const gUnk_0811F7E8[])(Entity*);
extern void (*const gUnk_0811F808[])(Entity*);
extern void (*const gUnk_0811F818[])(Entity*);

extern u32 gUnk_0811F8B0;
void ChestSpawner(Entity* this) {
    gUnk_0811F7E8[this->type](this);
}

void sub_08083DF0(Entity* this) {
    gUnk_0811F808[this->action](this);
}

void sub_08083E08(Entity* this) {
    gUnk_0811F818[this->action](this);
}

void sub_08083E20(Entity* this) {
    this->action = 3;
    this->spriteSettings.b.draw = 1;
    this->spriteRendering.alphaBlend = 0;
    sub_080842D8(this);
    sub_08078828(this);
}