aboutsummaryrefslogtreecommitdiff
path: root/src/game/game.cpp
blob: 2c99c6afa2b3a0c33fca5b30d447ee410043f396 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "game.hpp"

#include <chrono>
#include <thread>

Game::Game(std::shared_ptr<IScene> scene) : _scene(std::move(scene)) {}

void Game::run()
{
	_scene->enter();

	std::this_thread::sleep_for(std::chrono::seconds(3));

	_scene->leave();
}