mirror of
https://github.com/zeldaret/tmc
synced 2026-07-28 23:27:44 -04:00
defined object table
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ extern void (*gUnk_08123384[])(Entity*);
|
||||
extern void UpdateSpriteOrderAndFlip(Entity*);
|
||||
extern void InitAnimationForceUpdate();
|
||||
|
||||
void sub_08097D78(Entity* ent) {
|
||||
void Bell(Entity* ent) {
|
||||
gUnk_08123384[ent->action](ent);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -152,4 +152,4 @@ void sub_08068B70(Entity *this)
|
||||
if (UpdateFuseInteraction()) {
|
||||
this->action = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -5,4 +5,4 @@ extern void (*gUnk_0811423C[])(Entity*);
|
||||
|
||||
void sub_0806DD78(Entity* this) {
|
||||
gUnk_0811423C[this->action](this);
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ extern u8 gUnk_081247C0[];
|
||||
extern u16 gUnk_081247C8[];
|
||||
extern u32 gUnk_081247D0;
|
||||
|
||||
void sub_0809F4C4(Entity* this) {
|
||||
void Cloud(Entity* this) {
|
||||
gUnk_08124798[(this->entityType).parameter1](this);
|
||||
}
|
||||
|
||||
|
||||
+1
-2
@@ -2,8 +2,7 @@
|
||||
#include "entity.h"
|
||||
#include "enemy.h"
|
||||
|
||||
void (*const gEnemyFunctions[])(Entity* ent) =
|
||||
{
|
||||
void (*const gEnemyFunctions[])(Entity* ent) = {
|
||||
Octorok,
|
||||
Chuchu,
|
||||
Leever,
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ extern RoomControls gRoomControls;
|
||||
extern s16 gUnk_08121750[];
|
||||
extern s16 gUnk_0812176A[];
|
||||
|
||||
void sub_0808D5DC(Entity* ent) {
|
||||
void GiantLeaf(Entity* ent) {
|
||||
if (ent->action == 0) {
|
||||
ent->action = 1;
|
||||
ent->spriteSettings.b.ss0 = 1;
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
#include "greatFairy.h"
|
||||
|
||||
// Main
|
||||
void sub_08086A90(Entity* ent) {
|
||||
void GreatFairy(Entity* ent) {
|
||||
u8 bVar1;
|
||||
|
||||
if (ent->action == 0) {
|
||||
|
||||
+200
@@ -0,0 +1,200 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "object.h"
|
||||
|
||||
void (*const gObjectFunctions[])(Entity*) = {
|
||||
ItemOnGround,
|
||||
DeathFx,
|
||||
ItemForSale,
|
||||
Button,
|
||||
Object4,
|
||||
Pot,
|
||||
Object6,
|
||||
BlockPushed,
|
||||
LockedDoor,
|
||||
Object9,
|
||||
ObjectA,
|
||||
ObjectB,
|
||||
ChestSpawner,
|
||||
ObjectD,
|
||||
ObjectE,
|
||||
SpecialFx,
|
||||
Object10,
|
||||
Object11,
|
||||
Object12,
|
||||
Railtrack,
|
||||
LilypadLarge,
|
||||
Object15,
|
||||
FloatingPlatform,
|
||||
Object17,
|
||||
EvilSpirit,
|
||||
HouseDoorExterior,
|
||||
Object1A,
|
||||
GreatFairy,
|
||||
Object1C,
|
||||
Object1D,
|
||||
Object1E,
|
||||
Object1F,
|
||||
Object20,
|
||||
Object21,
|
||||
FigurineDevice,
|
||||
EyeSwitch,
|
||||
Object24,
|
||||
BigBarrel,
|
||||
Object26,
|
||||
PushableStatue,
|
||||
Object28,
|
||||
Object29,
|
||||
Object2A,
|
||||
Object2B,
|
||||
Beanstalk,
|
||||
Smoke,
|
||||
PushableRock,
|
||||
HittableLever,
|
||||
Object30,
|
||||
Object31,
|
||||
PullableMushroom,
|
||||
Bollard,
|
||||
WarpPoint,
|
||||
Object35,
|
||||
Object36,
|
||||
Object37,
|
||||
JarPortal,
|
||||
BossDoor,
|
||||
Object3A,
|
||||
MacroMushromStalks,
|
||||
MacroLink,
|
||||
Object3D,
|
||||
Object3E,
|
||||
GiantLeaf,
|
||||
Fairy,
|
||||
LadderUp,
|
||||
Object42,
|
||||
Object43,
|
||||
Object44,
|
||||
Object45,
|
||||
GiantBookLadder,
|
||||
HeartContainer,
|
||||
Object48,
|
||||
Object49,
|
||||
BackgroundCloud,
|
||||
Object4B,
|
||||
PushableFurniture,
|
||||
Furniture,
|
||||
MinishSizedEntrance,
|
||||
Archway,
|
||||
GiantRock,
|
||||
Object51,
|
||||
Object52,
|
||||
Object53,
|
||||
PullableLever,
|
||||
Minecart,
|
||||
Object56,
|
||||
HiddenLadderDown,
|
||||
GentariCurtain,
|
||||
LavaPlatform,
|
||||
Object5A,
|
||||
Object5B,
|
||||
Mask,
|
||||
HouseDoorInterior,
|
||||
Whirlwind,
|
||||
ObjectBlockingStairs,
|
||||
SwordsmanNewsletter,
|
||||
Object61,
|
||||
GiantTwig,
|
||||
Object63,
|
||||
Object64,
|
||||
LadderHoleInBookshelf,
|
||||
Object66,
|
||||
Object67,
|
||||
Object68,
|
||||
Object69,
|
||||
Object6A,
|
||||
CrenalBeanSprout,
|
||||
MinecartDoor,
|
||||
ObjectOnPillar,
|
||||
MineralWaterSource,
|
||||
MinishSizedArchway,
|
||||
Object70,
|
||||
PushableGrave,
|
||||
Object72,
|
||||
LilypadSmall,
|
||||
Object74,
|
||||
Object75,
|
||||
Object76,
|
||||
Bell,
|
||||
MacroDecoration,
|
||||
Object79,
|
||||
Steam,
|
||||
PushableLever,
|
||||
MacroShoes,
|
||||
ObjectOnSpinyBeetle,
|
||||
Object7E,
|
||||
PicoBloom,
|
||||
Object80,
|
||||
Object81,
|
||||
BigVortex,
|
||||
BigPushableLever,
|
||||
SmallIceBlock,
|
||||
BigIceBlock,
|
||||
Object86,
|
||||
Object87,
|
||||
MacroBook,
|
||||
Object89,
|
||||
Object8A,
|
||||
Object8B,
|
||||
Book,
|
||||
Fireplace,
|
||||
Object8E,
|
||||
FrozenWaterElement,
|
||||
Object90,
|
||||
Object91,
|
||||
BakerOven,
|
||||
Object93,
|
||||
WindTribeFlag,
|
||||
Bird,
|
||||
Object96,
|
||||
Object97,
|
||||
Object98,
|
||||
Object99,
|
||||
MacroAcorn,
|
||||
Object9B,
|
||||
TreeHidingPortal,
|
||||
LightableSwitch,
|
||||
Object9E,
|
||||
Fan,
|
||||
ObjectA0,
|
||||
PalaceArchway,
|
||||
ObjectA2,
|
||||
Cloud,
|
||||
MinishLight,
|
||||
ObjectA5,
|
||||
ObjectA6,
|
||||
ObjectA7,
|
||||
ObjectA8,
|
||||
ObjectA9,
|
||||
WaterfallOpening,
|
||||
ObjectAB,
|
||||
FourElements,
|
||||
ObjectAD,
|
||||
FloatingBlock,
|
||||
ObjectAF,
|
||||
MetalDoor,
|
||||
JailBars,
|
||||
ObjectB2,
|
||||
ObjectB3,
|
||||
ObjectB4,
|
||||
ObjectB5,
|
||||
ObjectB6,
|
||||
Well,
|
||||
WindTribeTeleporter,
|
||||
ObjectB9,
|
||||
ObjectBA,
|
||||
Windcrest,
|
||||
LitArea,
|
||||
ObjectBD,
|
||||
Pinwheel,
|
||||
ObjectBF,
|
||||
EnemyItem,
|
||||
ObjectC1,
|
||||
};
|
||||
+1
-1
@@ -14,7 +14,7 @@ extern void (*gUnk_081206C4[99])(Entity*);
|
||||
extern u32 gUnk_080FD1A8;
|
||||
|
||||
// Main
|
||||
void sub_080869C4(Entity* ent) {
|
||||
void Object1A(Entity* ent) {
|
||||
gUnk_081206C4[ent->action](ent);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"folders": [
|
||||
{
|
||||
"path": ".."
|
||||
}
|
||||
]
|
||||
}
|
||||
+1
-1
@@ -11,7 +11,7 @@ extern Entity gLinkEntity;
|
||||
extern RoomControls gRoomControls;
|
||||
extern void (*gUnk_08124C08[])(Entity*);
|
||||
|
||||
void sub_080A0E98(Entity* ent) {
|
||||
void Well(Entity* ent) {
|
||||
gUnk_08124C08[ent->action](ent);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user