Skip to content

Remove Materials module#5818

Merged
ab9rf merged 1 commit into
DFHack:developfrom
ab9rf:remove-materials-module
May 24, 2026
Merged

Remove Materials module#5818
ab9rf merged 1 commit into
DFHack:developfrom
ab9rf:remove-materials-module

Conversation

@ab9rf
Copy link
Copy Markdown
Member

@ab9rf ab9rf commented May 24, 2026

Note that this only removes the legacy Materials class; the modern module persists and the two methods that were in the class that aren't related to the cache Materials managed (getDescription and getType, which no existing code uses at present) are converted to free functions in the Materials namespace.

Future "material"-related convenience methods should be added to this namespace. Also, adding Lua API mappings for these two methods might be advisable.

No user-facing change.

@ab9rf ab9rf force-pushed the remove-materials-module branch from 736503b to e82a2e1 Compare May 24, 2026 05:45
@ab9rf ab9rf merged commit 7ec82ca into DFHack:develop May 24, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant