Decompile lamp

This commit is contained in:
Tal Hayon
2022-02-27 06:05:06 +02:00
parent abe6053a4f
commit 4ffa704eb3
4 changed files with 25 additions and 44 deletions
+23
View File
@@ -0,0 +1,23 @@
#include "entity.h"
void Lamp_Init(Entity* this);
void Lamp_Action1(Entity* this);
void Lamp(Entity* this) {
static void (*const actionFuncs[])(Entity*) = {
Lamp_Init,
Lamp_Action1,
};
actionFuncs[this->action](this);
}
void Lamp_Init(Entity* this) {
this->action = 1;
UpdateSpriteForCollisionLayer(this);
InitializeAnimation(this, 0);
}
void Lamp_Action1(Entity* this) {
GetNextFrame(this);
}