aboutsummaryrefslogtreecommitdiff
path: root/src/map_data.rs
Commit message (Collapse)AuthorAgeLines
* Refactor to make interaction between tools easierArne Dußin2020-12-15-97/+0
|
* Change to f64 as the preferred floating point numberArne Dußin2020-11-27-9/+9
|
* Add unfinished polygon room toolArne Dußin2020-11-20-1/+11
| | | | | | | When adding the polygon room tool, a problem with drawing polygons arised. Drawing a simple, but nonregular polygon is not something that is supported by raylib, so further additions to the math library are needed.
* Fix some style errorsArne Dußin2020-11-10-0/+1
| | | | | Fixed the last warnings and ran clippy on the project. Fixed where appropriate and taught clippy otherwise. Now runs through clean.
* Make it so icons can rotateArne Dußin2020-11-08-3/+4
|
* Add icon toolArne Dußin2020-11-06-0/+10
|
* Change pretty config of RON output formatArne Dußin2020-11-01-0/+1
|
* Add feature to load and save to a test swap-fileArne Dußin2020-11-01-4/+34
|
* Refactor a major part of the projectArne Dußin2020-11-01-0/+44
In order to be able to save and load the map, a major rework of the code seemed necessary, since Vector2 and Rectangle of raylib do not implement serialize, and it seems cleanest to use the serialize/deserialize traits of serde, to save for instance to RON. ToolShed was renamed to Editor, since it should better show, that it does quite a bit more than harbour tools. The map data is now centrally saved in the editor, instead of decentralised in the tool structs.