summaryrefslogtreecommitdiff
path: root/library/include/modules/Materials.h
diff options
context:
space:
mode:
Diffstat (limited to 'library/include/modules/Materials.h')
-rw-r--r--library/include/modules/Materials.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/library/include/modules/Materials.h b/library/include/modules/Materials.h
index 76c89de3..fb5a6353 100644
--- a/library/include/modules/Materials.h
+++ b/library/include/modules/Materials.h
@@ -131,6 +131,11 @@ namespace DFHack
bool findPlant(const std::string &token, const std::string &subtoken);
bool findCreature(const std::string &token, const std::string &subtoken);
+ bool findProduct(df::material *material, const std::string &name);
+ bool findProduct(const MaterialInfo &info, const std::string &name) {
+ return findProduct(info.material, name);
+ }
+
std::string getToken();
std::string toString(uint16_t temp = 10015, bool named = true);