Replace Game::initialize() with factory method
This commit is contained in:
parent
d180b8a5b4
commit
e37eb0b03f
6 changed files with 43 additions and 37 deletions
|
|
@ -59,12 +59,12 @@ export namespace core
|
|||
0
|
||||
);
|
||||
|
||||
return std::unique_ptr<Engine>(
|
||||
return std::unique_ptr<Engine>{
|
||||
new Engine{
|
||||
std::move(sdl_window),
|
||||
Renderer{std::move(sdl_renderer)}
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
bool keep_running() const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue