EnTypesManager v1 - #39
Conversation
…e of param based on reading the source file structure.
…various EnemyParam functions.
Report for GLMP01_01 (edb2188 - 243f1b0)No changesReport for GLMJ01 (edb2188 - 243f1b0)No changesReport for GLME01 (edb2188 - 243f1b0)📈 Matched code: 17.87% (+0.04%, +880 bytes) ✅ 27 new matches
📈 3 improvements in unmatched items
Report for GLMP01_00 (edb2188 - 243f1b0)No changes |
|
okay should be good to merge now, apologies as i didnt realize my last commit was missing the symbols file changes associated lol. |
| mElement(&mParams, 0, "mElement", mElement.calcKeyCode("mElement")), | ||
| mCheckBox(&mParams, 0, "mCheckBox", mCheckBox.calcKeyCode("mCheckBox")), | ||
| mNormalItemTblId(&mParams, 0, "mNormalItemTblId", mNormalItemTblId.calcKeyCode("mNormalItemTblId")), | ||
| mTsuriItemTblId(&mParams, 0, "mTsuriItemTblId", mTsuriItemTblId.calcKeyCode("mTsuriItemTblId")), |
There was a problem hiding this comment.
isn't there a PARAM_INIT macro?
There was a problem hiding this comment.
Yes, but it didn't quite fit the needs here (I still should have made a macro though I just forgot ngl).
If we were to use, it needs to change from
#define PARAM_INIT(member, defaultValue) \ member(this, defaultValue, #member, calcKeyCode(#member))
to
#define PARAM_INIT(member, defaultValue) \ member(&mParams, defaultValue, #member, member.calcKeyCode(#member))
As this matches closer to what I saw from the ASM. Let me know if you want me to change this or make a new one based on my findings.
lots of matches, the most notable thing is that the split doesn't have .data / .sdata because it conflicts with EnAttackBase (it create some circular dependency thing), which may lead to a bigger problem outside of this PR specifically, so I deemed it out of scope for this PR and to be worried about later. In the header of EnTypesManager.hpp, I left the notes of what the data would look like.