| 123456789101112131415161718192021222324252627282930313233343536 |
- //
- // serial.hpp
- // danmaku
- //
- // Created by Sam Jaffe on 5/27/19.
- // Copyright © 2019 Sam Jaffe. All rights reserved.
- //
- #pragma once
- #include <memory>
- #include <json/forwards.h>
- #include "game/engine/serial.hpp"
- namespace danmaku {
- class actor;
- class player;
- struct points_map;
- }
- namespace graphics {
- class manager;
- }
- namespace danmaku {
- points_map to_points_map(Json::Value const & json);
- std::unique_ptr<actor> to_actor(Json::Value const & json,
- graphics::manager const & mgr);
- std::unique_ptr<player> to_player(Json::Value const & json,
- graphics::manager const & mgr);
- template <typename F, typename... Args>
- auto to_vector(Json::Value const & json, F && func, Args &&... args)
- -> std::vector<decltype(func(json, args...))>;
- }
|