Exemplo n.º 1
0
bool IOMapSerialize::saveMap(Map* map)
{
	if(g_config.getBool(ConfigManager::HOUSE_STORAGE))
		return saveMapBinary(map);

	return saveMapRelational(map);
}
Exemplo n.º 2
0
bool IOMapSerialize::saveMap(Map* map)
{
	std::string config = asLowerCaseString(g_config.getString(ConfigManager::HOUSE_STORAGE));
	if(config == "binary-tilebased")
		return saveMapBinaryTileBased(map);
	else if(config == "binary")
		return saveMapBinary(map);

	return saveMapRelational(map);
}