aboutsummaryrefslogtreecommitdiff
path: root/frontend/main.cpp
blob: 90cb1d2cb3ee4e56fc5e92c81b3e95c125330afc (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
27
#include <memory>
#include <cstdlib>
#include <cstdio>

#include "backend/Dungeon.h"

#include "cli.h"
#include "strings.h"

using namespace std;

int main() {
	auto dungeon = make_unique<Dungeon>();

	print_string(strings::INTRO);
	string filename = cli_readline();
	if (filename.size() == 0) {
		printf("TODO: generate dungeon\n");
	} else {
		printf("TODO: load %s\n", filename.c_str());
	}

	cli_main();

	return EXIT_SUCCESS;
}