Decompile aiSetDoorClosed

This commit is contained in:
Ryan Dwyer
2019-10-19 22:36:17 +10:00
parent e74f0c8dc2
commit a63372bb7a
5 changed files with 48 additions and 55 deletions
+1 -1
View File
@@ -232,7 +232,7 @@
/*0x00e3*/ bool ai00e3(void);
/*0x00e4*/ bool ai00e4(void);
/*0x00e5*/ bool ai00e5(void);
/*0x00e8*/ bool ai00e8(void);
/*0x00e8*/ bool aiSetDoorClosed(void);
/*0x00e9*/ bool ai00e9(void);
/*0x00ea*/ bool ai00ea(void);
/*0x00eb*/ bool ai00eb(void);
+1 -1
View File
@@ -281,7 +281,7 @@ struct g_vars {
/*00041c*/ u32 unk00041c;
/*000420*/ u32 unk000420;
/*000424*/ struct chrdata *chrdata;
/*000428*/ struct defaultobj *objdata;
/*000428*/ struct standardobj *objdata;
/*00042c*/ struct otheraidata *aicdata;
/*000430*/ struct otheraidata *aiddata;
/*000434*/ u8 *ailist;
+25 -7
View File
@@ -265,16 +265,12 @@ struct defaultobj {
/*0x54*/ u32 nextcol;
/*0x58*/ u16 floorcol;
/*0x5a*/ u8 numtiles;
// These properties might not be part of defaultobj,
// but rather standard objs only
/*0x5c*/ u8 *ailist;
/*0x60*/ u16 aioffset;
/*0x62*/ u16 aireturnlist;
};
struct doorobj { // objtype 0x01
struct defaultobj base;
/*0x5c*/ float unk5c;
/*0x60*/ u32 unk60;
/*0x64*/ u32 unk64;
/*0x68*/ u32 unk68;
/*0x6c*/ u32 unk6c;
@@ -282,8 +278,30 @@ struct doorobj { // objtype 0x01
/*0x74*/ u32 unk74;
/*0x78*/ u32 unk78;
/*0x7c*/ float speed;
/*0x80*/ u32 unk80;
/*0x80*/ float unk80;
/*0x84*/ s8 state;
/*0x88*/ u32 unk88;
/*0x8c*/ u32 unk8c;
/*0x90*/ u32 unk90;
/*0x94*/ u32 unk94;
/*0x98*/ u32 unk98;
/*0x9c*/ u32 unk9c;
/*0xa0*/ u32 unka0;
/*0xa4*/ u32 unka4;
/*0xa8*/ u32 unka8;
/*0xac*/ u32 unkac;
/*0xb0*/ u32 unkb0;
/*0xb4*/ u32 unkb4;
/*0xb8*/ u32 unkb8;
/*0xbc*/ u32 unkbc;
/*0xc0*/ u32 unkc0;
};
struct standardobj { // objtype 0x03
struct defaultobj base;
/*0x5c*/ u8 *ailist;
/*0x60*/ u16 aioffset;
/*0x62*/ u16 aireturnlist;
};
struct image {