#include "classicmode/classicfactory.h" #include "graphics/classicgraphicsfactory.h" #include "graphics/classicscenegraphicsmanager.h" #include "graphics/classictimelinegraphicsmanager.h" #include "core/timeline.h" #include "editor/classiceditor.h" #include "editor/editorcontext.h" #include "editor/selectionmanager.h" #include "game/classicgame.h" #include "game/gamecontext.h" #include "game/holdmanager.h" std::unique_ptr classic::getGame(const std::shared_ptr &core_factory) { const kku::microsec visibility_offset = 1648648; const auto factory = std::make_shared(core_factory); const auto timeline = std::make_shared>(); const auto graphics_manager = std::make_shared( timeline, factory, visibility_offset); const auto hold_manager = std::make_shared(); const auto context = std::make_shared(hold_manager, graphics_manager); return std::make_unique(timeline, context); } std::unique_ptr classic::getEditor(const std::shared_ptr &core_factory) { const kku::microsec visibility_offset = 1648648; const auto factory = std::make_shared(core_factory); const auto timeline = std::make_shared>(); const auto selection_manager = std::make_shared>(); std::vector> graphics_managers; graphics_managers.emplace_back( std::make_shared(timeline, factory, visibility_offset)); graphics_managers.emplace_back( std::make_shared( timeline, factory, visibility_offset * 2)); const auto context = std::make_shared( selection_manager, std::move(graphics_managers)); return std::make_unique(timeline, context); }