#pragma once #include "components.hpp" #include "dinkyecs.hpp" #include "tser.hpp" #include #include namespace save { struct Facts { components::Player player; DEFINE_SERIALIZABLE(Facts, player); }; struct SaveData { Facts facts; std::map position; std::map motion; std::map combat; DEFINE_SERIALIZABLE(SaveData, facts, position, motion, combat); }; void to_file(std::string path, DinkyECS::World &world); void from_file(std::string path, DinkyECS::World &world_out); }