Added function to get const reference to stored map of labours. Nothing special

develop
Simon Jackson 2010-08-10 22:28:53 +01:00
parent 7d684d12b4
commit 1e9c4a0450
2 changed files with 6 additions and 0 deletions

@ -718,6 +718,11 @@ std::vector< std::vector<std::string> > const& memory_info::getAllTraits()
return d->traits;
}
std:: map<uint32_t, std::string> const& memory_info::getAllLabours()
{
return d->labors;
}
string memory_info::getLabor (const uint32_t laborIdx)
{
if(d->labors.count(laborIdx))

@ -75,6 +75,7 @@ namespace DFHack
std::string getTraitName(const uint32_t) const;
std::string getLabor (const uint32_t);
std::vector< std::vector<std::string> > const& getAllTraits();
std:: map<uint32_t, std::string> const& getAllLabours();
DFHack::t_level getLevelInfo(const uint32_t level) const;