Esempio n. 1
0
bool look(libconfig::Setting& current, std::string place ,Vector3& vec,std::string ent)
{
	using namespace libconfig;
	if (current.exists(place))
	{
		Setting& posit = current.lookup(place);
		vec[0] = posit[0];
		vec[1] = posit[1];
		vec[2] = posit[2];
		return true;
	}
	else
	{
		std::cout << place<<" error in " << ent << std::endl;
		return false;
	}
}