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