Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API: Standardized map element indices across all APIs
It appears we had accumulated various different representations for map element indices. Some indexes were 1-based, some APIs used unsigned integers, etc... As we breaking API compatibility for this release now is a good time to address this issue and apply a global standard. All map element indexes are now 0-based and all indices specified to public APIs are represented with the platform's signed, integer type. MapElement now stores an indexInArchive in addition to indexInMap. This being the index of the relevant map element/definition from the "archived" map (e.g., in id tech 1 format). The in-archive index is specified when transferring the map element using the map edit API. The old DD_SECTOR_COUNT (etc...) engine constants have been replaced with a new DMU API P_Count() function. Also, the WAD Map Converter plugin now uses the same representation.
- Loading branch information
1 parent
31f10cf
commit 81b3a40
Showing
84 changed files
with
875 additions
and
1,073 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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
Oops, something went wrong.