serial.hpp 609 B

1234567891011121314151617181920212223
  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/graphics/graphics_fwd.h"
  11. #include "game/math/math_fwd.hpp"
  12. namespace engine {
  13. Json::Value read_file(std::string const & abs_path);
  14. math::vec2 to_vec2(Json::Value const & json);
  15. math::vec2i to_vec2i(Json::Value const & json);
  16. math::vec2 to_vec2(Json::Value const & json, math::vec2 const & backup);
  17. graphics::object to_object(Json::Value const & json,
  18. graphics::manager const & mgr);
  19. }