Last active
May 27, 2016 20:22
-
-
Save jose-vm/0317689f49a6f9a1d0484b735f063075 to your computer and use it in GitHub Desktop.
Clone of BlockLauncher code for Item.setProperties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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