Skip to content
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

Remove MapCache dependency for Items module #4824

Merged
merged 16 commits into from
Jul 31, 2024
Merged

Conversation

Bumber64
Copy link
Contributor

@Bumber64 Bumber64 commented Jul 29, 2024

Remove MapCache dependency for Items module.

Moved a bunch of code out of a switch statement in createitem.cpp into separate utility fns for readability.

Made improvements to autodump.cpp so it's in line with gui/autodump. (Convert to projectile, cancel any active job.)

Tidied up autoclothing.cpp a bit, made sure to initialize variables in a struct.

Made dfhack.items.moveToInventory args use_mode and body_part optional.

Bumber64 added 14 commits July 27, 2024 19:55
* Remove MapCache dependency
* Alphabetize includes
* Unindent namespace
* Remove MapCache dependency
* Alphabetize includes
* Remove MapCache dependency
* Move some code to utility fns
* Alphabetize includes
* Use enum namespace in switches
* Remove MapCache dependency
* Alphabetize includes
* Item module fns no longer use MapCache
* Alphabetized includes
* Alphabetized includes
* Maps module unused
* Initialize struct ClothingRequirement vars
* Some tidying of code
* Remove MapCache dependency
* Account for buildings as floors
* Remove abusing namespace std
* Alphabetize includes
* Tidy some code
* Update autodump.cpp - allow dumping in air; cancel active jobs
* Update autodump.rst
* Update changelog.txt
* Update Lua API.rst
* Update LuaApi.cpp
* Update changelog.txt
@Bumber64 Bumber64 marked this pull request as ready for review July 30, 2024 04:34
Copy link
Member

@myk002 myk002 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yay for MapCache deprecation! Thanks!

* Update changelog.txt
* Update Items.cpp
* Update MapCache.cpp
* Update autodump.cpp
* Update autodump.rst
@myk002 myk002 merged commit a860b75 into DFHack:develop Jul 31, 2024
14 checks passed
@Bumber64 Bumber64 deleted the item_stuff branch July 31, 2024 22:37
@ab9rf ab9rf mentioned this pull request Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants