Skip to content

Instantly share code, notes, and snippets.

@MarianoGnu
Created December 26, 2013 18:57
Show Gist options
  • Select an option

  • Save MarianoGnu/8137401 to your computer and use it in GitHub Desktop.

Select an option

Save MarianoGnu/8137401 to your computer and use it in GitHub Desktop.
bool GameProject::Save()
{
picojson::object j_project;
j_project["GameTitle"] = picojson::value(m_gametitle.toStdString());
j_project["TileSize"] = picojson::value((double)m_tilesize);
picojson::array j_backdrop;
for (int i = 0; i < m_backdrop.size(); i++)
j_backdrop.push_back(picojson::value(m_backdrop[i].toStdString()));
j_project["Backdrop"] = picojson::value(j_backdrop);
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment