Inverted control flow, engine as library
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
|
||||
#include "textgame.hpp"
|
||||
#include "driver.hpp"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
TextGame tg;
|
||||
tg.run();
|
||||
driver_drive(&tg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user