2021-09-14 21:02:23 +02:00
|
|
|
#include "shared/classicmode/classicfactory.h"
|
|
|
|
#include "game/classicgame.h"
|
2021-11-17 23:14:52 +01:00
|
|
|
#include "graphics/classicgraphicsmanager.h"
|
2021-09-14 21:02:23 +02:00
|
|
|
#include "tools/music.h"
|
|
|
|
|
2021-11-17 23:14:52 +01:00
|
|
|
#include "editor/classiceditor.h"
|
|
|
|
|
2021-09-14 21:02:23 +02:00
|
|
|
#include <SFML/Graphics/RenderWindow.hpp>
|
|
|
|
|
2021-11-17 23:14:52 +01:00
|
|
|
std::unique_ptr<Game> classic::initGame(sf::RenderWindow& game_window)
|
2021-09-14 21:02:23 +02:00
|
|
|
{
|
2021-11-02 18:03:27 +01:00
|
|
|
return std::make_unique<ClassicGame>(std::make_unique<ClassicGraphicsManager>(game_window));
|
2021-09-14 21:02:23 +02:00
|
|
|
}
|
2021-11-17 23:14:52 +01:00
|
|
|
|
|
|
|
std::unique_ptr<Editor> classic::initEditor(sf::RenderWindow& game_window)
|
|
|
|
{
|
|
|
|
return std::make_unique<ClassicEditor>(std::make_unique<ClassicGraphicsManager>(game_window));
|
|
|
|
}
|