From 67da19b92c320c282ad9857da4bc41cd042b2b8f Mon Sep 17 00:00:00 2001 From: theo3 Date: Wed, 22 Jul 2020 23:05:12 -0700 Subject: structures.h --- src/object/palaceArchway.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/object/palaceArchway.c (limited to 'src/object') diff --git a/src/object/palaceArchway.c b/src/object/palaceArchway.c new file mode 100644 index 00000000..1580c20b --- /dev/null +++ b/src/object/palaceArchway.c @@ -0,0 +1,21 @@ +#include "global.h" +#include "entity.h" +#include "room.h" +#include "functions.h" + +extern void (*const gUnk_081246EC[])(Entity*); + +void PalaceArchway(Entity* this) { + gUnk_081246EC[this->action](this); +} + +void sub_0809F2A0(Entity *this) +{ + this->action = 1; + this->frameIndex = this->entityType.parameter; + this->spriteRendering.b3 = 3; + this->spritePriority.b0 = 7; + SetTile(0x4069, COORD_TO_TILE(this), this->collisionLayer); +} + +void nullsub_537() {} \ No newline at end of file -- cgit v1.2.3