Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Tõõtab
- std::stringstream ss; // any stream can be used
- {
- cereal::JSONOutputArchive oarchive(ss); // Create an output archive
- oarchive(worldScene->entityManager()); // Write the data to the archive
- }
- {
- std::shared_ptr<CEntityManager> mgrASD;
- cereal::JSONInputArchive iarchive(ss); // Create an input archive
- iarchive(mgrASD); // Write the data to the archive
- int i = 0;
- }
- //EI Tõõta
- std::stringstream ss; // any stream can be used
- {
- cereal::JSONOutputArchive oarchive(ss); // Create an output archive
- oarchive(worldScene->entityManager()); // Write the data to the archive
- std::shared_ptr<CEntityManager> mgrASD;
- cereal::JSONInputArchive iarchive(ss); // Create an input archive
- iarchive(mgrASD); // Write the data to the archive
- int i = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement