-
Notifications
You must be signed in to change notification settings - Fork 94
d_a_obj_msdan2 #919
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
Open
RedArms
wants to merge
8
commits into
zeldaret:main
Choose a base branch
from
RedArms:d_a_obj_msdan2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
d_a_obj_msdan2 #919
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e8fb03d
Decompile d_a_obj_msdan2
RedArms ca0f23d
Fix and cleaning
RedArms 699b235
Forgot to add .h
RedArms bf9b715
Decompile d_a_obj_msdan2
RedArms cde8c50
Fix all
RedArms 81dc101
Correct some mistakes
RedArms 90bbdfa
Correct some other mistakes
RedArms 8047968
deleted the line
RedArms File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,29 +2,90 @@ | |
| // Generated by dtk | ||
| // Translation Unit: d_a_obj_msdan2.cpp | ||
| // | ||
|
|
||
| #include "d/dolzel_rel.h" // IWYU pragma: keep | ||
| #include "d/actor/d_a_obj_msdan2.h" | ||
| #include "d/d_procname.h" | ||
| #include "d/d_priority.h" | ||
| #include "d/d_a_obj.h" | ||
|
|
||
| /* 00000078-0000024C .text Mthd_Create__Q211daObjMsdan25Act_cFv */ | ||
| /* 00000078-000003D4 .text Mthd_Create__Q211daObjMsdan25Act_cFv */ | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again, same comment is still wrong. |
||
| cPhs_State daObjMsdan2::Act_c::Mthd_Create() { | ||
| /* Nonmatching */ | ||
| fopAcM_SetupActor(this, daObjMsdan2::Act_c); | ||
|
|
||
| cXyz pos = current.pos; | ||
| csXyz angle = current.angle; | ||
|
|
||
| angle.y += 0x8000; | ||
| pos.y += 400.0f; | ||
|
|
||
| for (int i = 0; i < 16; i++) { | ||
| pos.x += 50.0f * cM_ssin(current.angle.y); | ||
| pos.z += 50.0f * cM_scos(current.angle.y); | ||
|
|
||
| fopAcM_create( | ||
| PROC_Obj_MsdanSub2, | ||
| prm_get_swSave() + (i << 8), | ||
| &pos, | ||
| mType, | ||
| &angle, | ||
| NULL, | ||
| -1, | ||
| NULL | ||
| ); | ||
| } | ||
|
|
||
| mEventIdx = dComIfGp_evmng_getEventIdx("Msdan2", 0xff); | ||
|
|
||
| u32 prmCheck = prm_get_swSave(); | ||
| if (dComIfGs_isSwitch(prmCheck, mSwitchBit)) { | ||
| mMode = MODE_DONE; | ||
| } else { | ||
| mMode = MODE_WAIT; | ||
| } | ||
|
|
||
| return cPhs_COMPLEATE_e; | ||
| } | ||
|
|
||
| /* 0000024C-00000344 .text Mthd_Execute__Q211daObjMsdan25Act_cFv */ | ||
| BOOL daObjMsdan2::Act_c::Mthd_Execute() { | ||
| /* Nonmatching */ | ||
| int swIdx; | ||
| switch (mMode) { | ||
| case MODE_WAIT: | ||
| swIdx = prm_get_swSave(); | ||
| if (fopAcM_isSwitch(this,swIdx)) { | ||
| fopAcM_orderOtherEventId(this, mEventIdx, 0xFF, 0xFFFF, 0, 1); | ||
| mMode = MODE_EVENT; | ||
| } | ||
| break; | ||
|
|
||
| case MODE_EVENT: | ||
| if (eventInfo.checkCommandDemoAccrpt()) { | ||
| mMode = MODE_EVENT_RUNNING; | ||
| } | ||
| break; | ||
|
|
||
| case MODE_EVENT_RUNNING: | ||
| if (dComIfGp_evmng_endCheck(mEventIdx)) { | ||
| dComIfGp_event_reset(); | ||
| mMode = MODE_DONE; | ||
| } | ||
| break; | ||
|
|
||
| case MODE_DONE: break; | ||
|
|
||
| } | ||
|
|
||
| return TRUE; | ||
| } | ||
|
|
||
| /* 00000344-0000034C .text Mthd_Delete__Q211daObjMsdan25Act_cFv */ | ||
| BOOL daObjMsdan2::Act_c::Mthd_Delete() { | ||
| /* Nonmatching */ | ||
| return TRUE; | ||
| } | ||
|
|
||
| namespace daObjMsdan2 { | ||
| namespace { | ||
|
|
||
| /* 0000034C-0000036C .text Mthd_Create__Q211daObjMsdan228@unnamed@d_a_obj_msdan2_cpp@FPv */ | ||
| cPhs_State Mthd_Create(void* i_this) { | ||
| return ((daObjMsdan2::Act_c*)i_this)->Mthd_Create(); | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.