Decompile manager38

This commit is contained in:
octorock
2021-05-03 00:51:11 +02:00
parent 5be366626e
commit 1484ab66dc
3 changed files with 33 additions and 57 deletions
+31
View File
@@ -0,0 +1,31 @@
#include "entity.h"
#include "room.h"
extern void (*const gUnk_08108DE0[])(Entity*);
extern Entity* LoadRoomEntity(EntityData*);
void Manager38_Main(Entity* this) {
gUnk_08108DE0[this->action](this);
}
void sub_0805E0C0(Entity* this) {
EntityData* entityData;
Entity* entity;
this->action = 1;
this->actionDelay = 0;
entityData = (EntityData*)GetCurrentRoomProperty(this->type);
if (entityData == NULL) {
DeleteThisEntity();
}
while (*(u8*)entityData != 0xff) {
entity = LoadRoomEntity(entityData++);
entity->parent = this;
entity->actionDelay = 0xff;
}
}
void sub_0805E0F4(Entity* this) {
this->actionDelay = 0;
}