|
|
@@ -13,6 +13,7 @@
|
|
|
#include "danmaku/actor.hpp"
|
|
|
#include "danmaku/bullet.hpp"
|
|
|
#include "danmaku/player.hpp"
|
|
|
+#include "game/engine/serial.hpp"
|
|
|
#include "game/graphics/renderer.hpp"
|
|
|
#include "game/math/common.hpp"
|
|
|
#include "resource_factory/prototype_factory.hpp"
|
|
|
@@ -24,7 +25,8 @@ get_wave(Json::Value const & json, graphics::manager const & manager) {
|
|
|
std::vector<std::unique_ptr<actor>> out;
|
|
|
for (int i = 0; i < json.size(); ++i) {
|
|
|
auto & factory = actor_factory::instance();
|
|
|
- out.emplace_back(factory.get(json["type"].asString(), json, manager));
|
|
|
+ out.emplace_back(factory.get(json["type"].asString(), json,
|
|
|
+ engine::to_object(json, manager)));
|
|
|
}
|
|
|
return out;
|
|
|
}
|