mirror of
https://github.com/zeldaret/tmc
synced 2026-08-04 09:09:32 -04:00
rename files
This commit is contained in:
@@ -10,6 +10,36 @@ extern const Hitbox* const gObjectHitboxes[];
|
||||
|
||||
u32 LoadObjectSprite(Entity* this, s32 type, const ObjectDefinition* definition);
|
||||
extern const ObjectDefinition gObjectDefinitions[];
|
||||
extern Entity* sub_0805E744(void);
|
||||
|
||||
Entity* sub_080A276C(Entity* parent, u32 type, u32 type2) {
|
||||
Entity* e = sub_0805E744();
|
||||
if (e != NULL) {
|
||||
e->id = 0xC1;
|
||||
e->kind = 6;
|
||||
e->type = type;
|
||||
e->type2 = type2;
|
||||
e->parent = parent;
|
||||
AppendEntityToList(e, 6);
|
||||
PrependEntityToList(e, 6);
|
||||
CopyPosition(&gPlayerEntity, e);
|
||||
gPriorityHandler.sys_priority = 6;
|
||||
gUnk_02034490[0] = 1;
|
||||
e->field_0x68.HALF.HI = gPlayerEntity.flags;
|
||||
e->field_0x68.HALF.LO = gPlayerEntity.spriteSettings.draw;
|
||||
e->field_0x6a.HALF.LO = gPlayerEntity.iframes;
|
||||
e->field_0x6a.HALF.HI = gPlayerState.field_0x7;
|
||||
e->field_0x6c.HALF.LO = gPlayerState.keepFacing;
|
||||
e->field_0x6c.HALF.HI = gPlayerState.field_0xa;
|
||||
e->field_0x6e.HALF.LO = gPlayerState.field_0x27[0];
|
||||
e->field_0x6e.HALF.HI = gPlayerState.field_0x1a[0];
|
||||
e->field_0x70.WORD = gPlayerState.flags;
|
||||
e->field_0x74.HALF.LO = gPlayerState.field_0x82[8];
|
||||
gPlayerEntity.flags &= ~ENT_COLLIDE;
|
||||
gPlayerEntity.spriteSettings.draw = 0;
|
||||
}
|
||||
return e;
|
||||
}
|
||||
|
||||
void ObjectInit(Entity* this) {
|
||||
const ObjectDefinition* definition = &gObjectDefinitions[this->id];
|
||||
|
||||
Reference in New Issue
Block a user