mirror of
https://github.com/zeldaret/tmc
synced 2026-06-26 02:14:45 -04:00
add subdirs
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "functions.h"
|
||||
#include "room.h"
|
||||
#include "flags.h"
|
||||
|
||||
typedef struct {
|
||||
u8 filler[9];
|
||||
u8 unk;
|
||||
} struct_030010A0;
|
||||
|
||||
typedef struct {
|
||||
u8 filler[4];
|
||||
u32 unk;
|
||||
} struct_0806C2A0;
|
||||
|
||||
extern void DoExitTransition(void *);
|
||||
extern void SetTileType(u32, u32, u32);
|
||||
extern void DoExitTransition(void *);
|
||||
extern void DoFade(u32, u32);
|
||||
|
||||
extern void gUnk_0813AD60;
|
||||
extern void gUnk_0813AD74;
|
||||
extern struct_030010A0 gUnk_030010A0;
|
||||
|
||||
void Simon(Entity *this)
|
||||
{
|
||||
if (this->action == 0) {
|
||||
this->action++;
|
||||
sub_0807DD50(this);
|
||||
}
|
||||
else {
|
||||
sub_0807DD94(this, 0);
|
||||
}
|
||||
}
|
||||
|
||||
void sub_0806C224(void)
|
||||
{
|
||||
DoExitTransition(&gUnk_0813AD60);
|
||||
gUnk_030010A0.unk = 6;
|
||||
}
|
||||
|
||||
void Simon_CreateChest(Entity *this)
|
||||
{
|
||||
CreateObjectWithParent(this,0xf,0x43,0);
|
||||
SetTileType(0x73, COORD_TO_TILE(this), this->collisionLayer);
|
||||
PlaySFX(0x73);
|
||||
}
|
||||
|
||||
void sub_0806C280(void)
|
||||
{
|
||||
SetGlobalFlag(0x50);
|
||||
DoExitTransition(&gUnk_0813AD74);
|
||||
gUnk_030010A0.unk = 6;
|
||||
}
|
||||
|
||||
void sub_0806C2A0(u32 *param_1,struct_0806C2A0 *param_2)
|
||||
{
|
||||
switch (param_2->unk) {
|
||||
case 0:
|
||||
DoFade(0xd, 4);
|
||||
break;
|
||||
case 1:
|
||||
DoFade(0xc, 4);
|
||||
break;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user