reworked JLoader as JSON_Loader, will require rework of rest of obj model

This commit is contained in:
Chris Punches
2017-06-08 23:49:13 -04:00
parent 245ee4323a
commit 9fe2d4923a
37 changed files with 854 additions and 1034 deletions

View File

@@ -41,12 +41,12 @@ Task Plan::get_task(std::string provided_name)
return * returnable;
}
Plan::Plan( std::string filename ): JLoader( filename )
Plan::Plan( std::string filename ): JSON_Loader( filename )
/* Plan loads a file and deserializes the Unit JSON object to Task types as a vector member
* Plan { vector<Task> }
*/
{
Json::Value raw_tasks = this->get_root()["plan"];
Json::Value raw_tasks = this->as_serialized()["plan"];
for ( int index = 0; index < raw_tasks.size(); index++ )
{