| 1234567891011121314151617181920212223 |
- //
- // serial.hpp
- // engine
- //
- // Created by Sam Jaffe on 5/20/19.
- // Copyright © 2019 Sam Jaffe. All rights reserved.
- //
- #pragma once
- #include <json/forwards.h>
- #include "game/graphics/graphics_fwd.h"
- #include "game/math/math_fwd.hpp"
- namespace engine {
- Json::Value read_file(std::string const & abs_path);
- math::vec2 to_vec2(Json::Value const & json);
- math::vec2i to_vec2i(Json::Value const & json);
- math::vec2 to_vec2(Json::Value const & json, math::vec2 const & backup);
- graphics::object to_object(Json::Value const & json,
- graphics::manager const & mgr);
- }
|