mirror of
https://github.com/zeldaret/mm.git
synced 2026-07-29 07:32:25 -04:00
obj_visiblock OK (#93)
* obj_visiblock OK * re-oked obj_visiblock * removed unnecessary pad
This commit is contained in:
@@ -8,7 +8,6 @@ void ObjVisiblock_Init(Actor* thisx, GlobalContext* globalCtx);
|
||||
void ObjVisiblock_Destroy(Actor* thisx, GlobalContext* globalCtx);
|
||||
void ObjVisiblock_Draw(Actor* thisx, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Obj_Visiblock_InitVars = {
|
||||
ACTOR_OBJ_VISIBLOCK,
|
||||
ACTORCAT_BG,
|
||||
@@ -20,10 +19,31 @@ const ActorInit Obj_Visiblock_InitVars = {
|
||||
(ActorFunc)func_800BDFB0,
|
||||
(ActorFunc)ObjVisiblock_Draw
|
||||
};
|
||||
*/
|
||||
|
||||
#pragma GLOBAL_ASM("./asm/non_matchings/overlays/ovl_Obj_Visiblock_0x80ADEA70/ObjVisiblock_Init.asm")
|
||||
static InitChainEntry D_80ADEB50[] = {
|
||||
ICHAIN_F32(uncullZoneForward, 4000, ICHAIN_CONTINUE),
|
||||
ICHAIN_F32(uncullZoneScale, 200, ICHAIN_CONTINUE),
|
||||
ICHAIN_F32(uncullZoneDownward, 150, ICHAIN_CONTINUE),
|
||||
ICHAIN_VEC3F_DIV1000(scale, 100, ICHAIN_STOP),
|
||||
};
|
||||
|
||||
#pragma GLOBAL_ASM("./asm/non_matchings/overlays/ovl_Obj_Visiblock_0x80ADEA70/ObjVisiblock_Destroy.asm")
|
||||
extern CollisionHeader D_06000AD0;
|
||||
extern UNK_TYPE D_06000140;
|
||||
|
||||
#pragma GLOBAL_ASM("./asm/non_matchings/overlays/ovl_Obj_Visiblock_0x80ADEA70/ObjVisiblock_Draw.asm")
|
||||
void ObjVisiblock_Init(Actor* thisx, GlobalContext* globalCtx) {
|
||||
ObjVisiblock* this = THIS;
|
||||
|
||||
Actor_ProcessInitChain(this, D_80ADEB50);
|
||||
BcCheck3_BgActorInit(&this->dyna, 0);
|
||||
BgCheck3_LoadMesh(globalCtx, &this->dyna, &D_06000AD0);
|
||||
}
|
||||
|
||||
void ObjVisiblock_Destroy(Actor* thisx, GlobalContext* globalCtx) {
|
||||
ObjVisiblock* this = THIS;
|
||||
|
||||
BgCheck_RemoveActorMesh(globalCtx, &globalCtx->colCtx.dyna, this->dyna.bgId);
|
||||
}
|
||||
|
||||
void ObjVisiblock_Draw(Actor* thisx, GlobalContext* globalCtx) {
|
||||
func_800BE03C(globalCtx, &D_06000140);
|
||||
}
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
struct ObjVisiblock;
|
||||
|
||||
typedef struct ObjVisiblock {
|
||||
/* 0x000 */ Actor actor;
|
||||
/* 0x144 */ char unk_144[0x1C];
|
||||
/* 0x000 */ DynaPolyActor dyna;
|
||||
} ObjVisiblock; // size = 0x160
|
||||
|
||||
extern const ActorInit Obj_Visiblock_InitVars;
|
||||
|
||||
Reference in New Issue
Block a user