Repository navigation
Decompile dCsvData_c
#121
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
Merged
Merged
Decompile dCsvData_c
#121
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
3e764b9
`dCsvData_c` 76% matching
RootCubed 807e754
`dCsvData_c` matched and linked
RootCubed 12e32a7
Begin cleanup and documentation
RootCubed 76fd63e
Full docs for `dCsvData_c`
RootCubed 5b868e6
Some documentation for `daBullet_c`
RootCubed 256078f
Re-add `unofficial` tag to `findSubRoutesForRoute`
RootCubed a9e07ed
Apply code review
RootCubed 54780a0
Apply rest of code review
RootCubed 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| /*! | ||
| @class dCsvData_c | ||
| @details | ||
| ## Overview | ||
| This class reads the CSV files located in @p WorldMap/RouteInfo.arc, which describe the structure of the world map - | ||
| how the nodes (points) are connected, which course unlocks which other course, and which world map enemies are present. | ||
|
|
||
| ## Point data layout | ||
| Each line in the point CSV file contains a number of fields, separated by commas. | ||
| If no more non-empty fields are present, the line may be terminated early with a carriage return and newline character. | ||
|
|
||
| The fields are as follows: | ||
| <table> | ||
| <thead> | ||
| <tr> | ||
| <th>Field</th> | ||
| <th>Description</th> | ||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| <tr> | ||
| <td>Line number</td> | ||
| <td>A sequential number starting from 1 for each line in the file, ignored by the game.</td> | ||
| </tr> | ||
| <tr> | ||
| <td>Point name</td> | ||
| <td>The name of the point.</td> | ||
| </tr> | ||
| <tr> | ||
| <td>Point types</td> | ||
| <td>A comma-separated list of the point's properties. See PointFlag_e.</td> | ||
| </tr> | ||
| <tr> | ||
| <td>Open point names (Regular exit)</td> | ||
| <td>A comma-separated list of point names which are unlocked when the player completes the course at this point.</td> | ||
| </tr> | ||
| <tr> | ||
| <td>Open route names (Regular exit)</td> | ||
| <td>A comma-separated list of route names which are unlocked when the player completes the course at this point.</td> | ||
| </tr> | ||
| <tr> | ||
| <td>Flag data (Regular exit)</td> | ||
| <td> | ||
| Seems to never be used in the vanilla world maps, but is referenced in: | ||
| <ul> | ||
| <li>ReadFlagData()</li> | ||
| <li>GetRouteAnimNum()</li> | ||
| <li>GetRouteAnimName()</li> | ||
| </ul> | ||
| </td> | ||
| </tr> | ||
| <tr> | ||
| <td>Open point names (Secret exit)</td> | ||
| <td>A comma-separated list of point names which are unlocked when the player completes the secret exit of the course at this point.</td> | ||
| </tr> | ||
| <tr> | ||
| <td>Open route names (Secret exit)</td> | ||
| <td>A comma-separated list of route names which are unlocked when the player completes the secret exit of the course at this point.</td> | ||
| </tr> | ||
| <tr> | ||
| <td>Flag data (Secret exit)</td> | ||
| <td>See the regular exit version of this.</td> | ||
| </tr> | ||
| </tbody> | ||
| </table> | ||
|
|
||
| ## Route data layout | ||
| Each line in the route CSV file contains a number of fields, separated by commas. | ||
|
|
||
| The fields are as follows: | ||
| <table> | ||
| <thead> | ||
| <tr> | ||
| <th>Field</th> | ||
| <th>Description</th> | ||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| <tr> | ||
| <td>Route name</td> | ||
| <td>The name of the route, in the format @p Rxxxxyyyy, where @p xxxx and @p yyyy denote the two connected points.</td> | ||
| </tr> | ||
| <tr> | ||
| <td>Route action type</td> | ||
| <td>The route type. This determines the animation of the player when they traverse the route. See ActionType_e.</td> | ||
| </tr> | ||
| <tr> | ||
| <td>Route flags</td> | ||
| <td>A comma-separated list of flags for the route. Only used in World 5 for the moving vines.</td> | ||
| </tr> | ||
| </tbody> | ||
| </table> | ||
| */ | ||
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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.