339{
340 if (!config.insNodeFunc)
341 {
342 throw std::runtime_error("Node Instantiate Function Not Found!");
343 }
344
345 Reset();
346 SeUIDSeed(data["uidSeed"]);
347
349 {
351 nd->LoadInternal(ndata);
353 }
354
356 {
358 lnk->Load(ldata);
359 ImGuiNodeEditor::PinId fromId, toId;
360 fromId = (int)ldata["from"];
361 toId = (int)ldata["to"];
362 lnk->from = pins[fromId.Get()];
363 lnk->to = pins[toId.Get()];
364 lnk->from->Link(lnk);
365 lnk->to->Link(lnk);
366 links[lnk->_id.Get()] = lnk;
367 }
368}
a class to store JSON values