serial.hpp 483 B

12345678910111213141516171819202122232425
  1. //
  2. // serial.hpp
  3. // engine
  4. //
  5. // Created by Sam Jaffe on 5/20/19.
  6. // Copyright © 2019 Sam Jaffe. All rights reserved.
  7. //
  8. #pragma once
  9. #include <json/forwards.h>
  10. #include "game/math/math_fwd.hpp"
  11. template <typename> class flyweight;
  12. namespace graphics {
  13. struct object;
  14. }
  15. namespace engine {
  16. math::vec2 to_vec2(Json::Value const & json);
  17. math::vec2 to_vec2(Json::Value const & json, math::vec2 const & backup);
  18. graphics::object to_object(Json::Value const & json);
  19. }