ThePhrozenKeep/D2MOO
View on GitHubDocument and chose naming convention for coordinates
Open
#107 opened on Apr 10, 2023
documentationenhancementgood first issue
Repository metrics
- Stars
- (159 stars)
- PR merge metrics
- (PR metrics pending)
Description
There are many types of coordinates systems with various granularity.
Cartesion Vs IsoRoom, Tile, Subtile, World position, Path- GUI coordinates
- Render data coordinates
- ...
It would be great to have a clear and concise documentation of what those are, what functions let us convert from one to another, and chose a naming convention for variables / struct members so that we can easily identify what type of coordinates we are talking about.
It might even be interesting to use typedefs (or even strongly typed structs?) to replace the plain int / D2CoordStrc.
A first draft of the documentation is available here https://github.com/ThePhrozenKeep/D2MOO/blob/master/doc/Coordinates.md.