-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
25 lines (21 loc) · 797 Bytes
/
main.cpp
File metadata and controls
25 lines (21 loc) · 797 Bytes
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
#include <memory>
#include "Client.hpp"
#include "MultiplayerWireworld/Automaton.hpp"
#include "MultiplayerWireworld/MultiplayerAutomaton.hpp"
#include "MultiplayerWireworld/Renderer.hpp"
#include "MultiplayerWireworld/UserInput.hpp"
#include "Window.hpp"
int main()
{
auto multiplayer_wireworld =
std::make_shared<MultiplayerWireworld::MultiplayerAutomaton>();
auto wireworld_renderer =
std::make_unique<MultiplayerWireworld::Renderer>(multiplayer_wireworld);
auto wireworld_input =
std::make_unique<MultiplayerWireworld::UserInput>(multiplayer_wireworld);
auto window = std::make_shared<UI::Window>(
std::move(wireworld_renderer), std::move(wireworld_input));
auto client = std::make_shared<Client>(window);
window->set_game(client);
client->start();
}