diff options
| author | Tal Hayon <talhayon1@gmail.com> | 2022-02-27 06:05:06 +0200 |
|---|---|---|
| committer | Tal Hayon <talhayon1@gmail.com> | 2022-02-27 06:05:06 +0200 |
| commit | 4ffa704eb3920b2cf2613fa879cfd87470d2ef30 (patch) | |
| tree | e309fabd5338bcc4463ba400a030c21c2ad6fb46 /src/object | |
| parent | abe6053a4f3dcaa511035baba764609464eadc46 (diff) | |
Decompile lamp
Diffstat (limited to 'src/object')
| -rw-r--r-- | src/object/lamp.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/object/lamp.c b/src/object/lamp.c new file mode 100644 index 00000000..caf458ad --- /dev/null +++ b/src/object/lamp.c @@ -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); +} |
