Project

General

Profile

« Previous | Next » 

Revision 81b3a40d

Added by danij over 11 years ago

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.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences