]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/world.cpp
eating and drinking
[blobs.git] / src / world / world.cpp
index 449307abeefbeeb88ea148171600aed8b2e1a596..0f9cb1e373d36d1ad8b20e2719b1dbadb5736f5b 100644 (file)
@@ -535,5 +535,16 @@ Sun::Sun()
 Sun::~Sun() {
 }
 
+
+std::vector<TileType::Yield>::const_iterator TileType::FindResource(int r) const {
+       auto yield = resources.cbegin();
+       for (; yield != resources.cend(); ++yield) {
+               if (yield->resource == r) {
+                       break;
+               }
+       }
+       return yield;
+}
+
 }
 }