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
43 blank::Config game = blank::Config();
44 HeadlessEnvironment::Config env = HeadlessEnvironment::Config();
45 Generator::Config gen = Generator::Config();
46 World::Config world = World::Config();
51 void ReadArgs(int argc, const char *const *argv);
60 void Run(HeadlessApplication &);