Port field_door

This commit is contained in:
Diegoisawesome
2018-01-07 17:50:13 -06:00
parent efe19e95c8
commit a11c65ff1a
6 changed files with 915 additions and 1370 deletions

View File

@@ -24,5 +24,6 @@ extern u16 gUnknown_03005DE8;
void DrawWholeMapView(void);
void CurrentMapDrawMetatileAt(int x, int y);
void DrawDoorMetatileAt(int x, int y, u16 *arr);
#endif //GUARD_FIELD_CAMERA_H

View File

@@ -1,11 +1,27 @@
#ifndef GUARD_FIELDDOOR_H
#define GUARD_FIELDDOOR_H
struct DoorGraphics
{
u16 metatileNum;
u8 sound;
u8 size;
const void *tiles;
const void *palette;
};
struct DoorAnimFrame
{
u8 time;
u16 offset;
};
void FieldSetDoorOpened(u32, u32);
void FieldSetDoorClosed(u32, u32);
s8 FieldAnimateDoorClose(u32, u32);
s8 FieldAnimateDoorOpen(u32, u32);
bool8 FieldIsDoorAnimationRunning(void);
u32 GetDoorSoundEffect(u32 x, u32 y);
bool8 sub_808A964(void);
#endif