blob: 2f63e0f28d9f008f33dcd9b61e5e52b6161d320c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#pragma once
#include "DI/auto_wirable.hpp"
#include "interfaces/game.hpp"
#include "interfaces/game_initializer.hpp"
#include "interfaces/input.hpp"
#include "interfaces/scene.hpp"
#include <memory>
class GameInitializer : public IGameInitializer,
public AutoWirable<IGameInitializer, GameInitializer, IScene,
IInputHandler, IGameFactory>
{
public:
GameInitializer(std::shared_ptr<IScene> scene,
std::shared_ptr<IInputHandler> input_handler,
IGameFactory game_factory);
void initialize() override;
private:
std::shared_ptr<IScene> _scene;
std::shared_ptr<IInputHandler> _input_handler;
IGameFactory _game_factory;
};
|