1 #ifndef BLANK_RUNTIME_HPP_
2 #define BLANK_RUNTIME_HPP_
4 #include "Environment.hpp"
5 #include "../client/Client.hpp"
6 #include "../server/Server.hpp"
7 #include "../ui/Interface.hpp"
8 #include "../world/Generator.hpp"
9 #include "../world/World.hpp"
17 class HeadlessApplication;
19 /// Parse and interpret arguemnts, then set up the environment and execute.
24 /// default behaviour: run until user quits, dynamic timesteps
26 /// quit after n frames
28 /// quit after n milliseconds
30 /// quit after n frames, use fixed timestap
32 /// display error message and quit with failure
44 bool doublebuf = true;
45 int multisampling = 1;
47 client::Client::Config client = client::Client::Config();
48 Generator::Config gen = Generator::Config();
49 HeadlessEnvironment::Config env = HeadlessEnvironment::Config();
50 Interface::Config interface = Interface::Config();
51 server::Server::Config server = server::Server::Config();
52 World::Config world = World::Config();
57 void ReadArgs(int argc, const char *const *argv);
66 void Run(HeadlessApplication &);