mirror of
https://github.com/zeldaret/tmc
synced 2026-06-01 01:39:50 -04:00
24 lines
443 B
C
24 lines
443 B
C
#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);
|
|
}
|