-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
d_a_obj_waterPillar + d_a_obj_syRock Equivalent (weak ordering) #2281
Conversation
marwernerh
commented
Jan 3, 2025
- Added fake struct padding (comes before dEvLib_callback_c inheritance)
- Basic documentation
- Added fake Chk inlines to dBgS_Acch
- Added AT_TYPE_100 to cCcD_ObjAtType
* Added fake struct padding * Added fake Chk inlines to dBgS_Acch * Added AT_TYPE_100 to cCcD_ObjAtType
* Deleted fake Chk inlines from dBgS_Acch * Removed duplicated, but commented, static check for struct size * Renamed two d_a_obj_waterPillar fields according to comments
include/d/actor/d_a_obj_syRock.h
Outdated
inline BOOL getArg0() { | ||
return shape_angle.x & 0xF; | ||
} | ||
|
||
// Switch to determine whether or not the stalactite has been broken | ||
inline u32 getSwBit1() { | ||
return fopAcM_GetParamBit(this, 0, 8); | ||
} | ||
|
||
// Switch to determine whether or not the stalactite should be broken automatically when player is in range | ||
inline u32 getSwBit2() { | ||
return fopAcM_GetParamBit(this, 8, 8); | ||
} | ||
|
||
// Event ID for Midna to stop and note the stalactite that fell by itself | ||
inline s32 getEvetID() { | ||
return fopAcM_GetParamBit(this, 16, 8); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a major thing but just for future reference, functions you define in the class like this don't need the inline keyword. they will automatically be inlined
src/d/actor/d_a_obj_syRock.cpp
Outdated
// NONMATCHING | ||
// Set base transform matrix of current model and the background matrix both to the contents of now | ||
mpModels[mIsUnbroken]->setBaseTRMtx(mDoMtx_stack_c::get()); | ||
PSMTXCopy(mDoMtx_stack_c::get(), mBgMtx); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another minor thing, you can leave off the PS prefix and just use MTXCopy for example