2017-10-12 07:06:19 +00:00
|
|
|
#ifndef GUARD_FIELDDOOR_H
|
|
|
|
#define GUARD_FIELDDOOR_H
|
|
|
|
|
2018-01-07 23:50:13 +00:00
|
|
|
struct DoorGraphics
|
|
|
|
{
|
|
|
|
u16 metatileNum;
|
|
|
|
u8 sound;
|
|
|
|
u8 size;
|
|
|
|
const void *tiles;
|
|
|
|
const void *palette;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct DoorAnimFrame
|
|
|
|
{
|
|
|
|
u8 time;
|
|
|
|
u16 offset;
|
|
|
|
};
|
|
|
|
|
2017-10-12 07:06:19 +00:00
|
|
|
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);
|
|
|
|
|
|
|
|
#endif
|