Skip to content

Instantly share code, notes, and snippets.

@jose-vm
Last active May 27, 2016 20:22
Show Gist options
  • Save jose-vm/0317689f49a6f9a1d0484b735f063075 to your computer and use it in GitHub Desktop.
Save jose-vm/0317689f49a6f9a1d0484b735f063075 to your computer and use it in GitHub Desktop.
Clone of BlockLauncher code for Item.setProperties
static void setProperties(Item* item, const std::string& data) {
Json::Value& value = Json::Value((Json::ValueType) 0);
Json::Reader& reader = Json::Reader();
reader.parse(data, value, true);
item->init(value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment