1 #ifndef BLANK_RUNTIME_HPP_
2 #define BLANK_RUNTIME_HPP_
4 #include "Environment.hpp"
5 #include "../net/Client.hpp"
6 #include "../net/Server.hpp"
7 #include "../ui/Interface.hpp"
8 #include "../world/World.hpp"
16 class HeadlessApplication;
18 /// Parse and interpret arguemnts, then set up the environment and execute.
23 /// default behaviour: run until user quits, dynamic timesteps
25 /// quit after n frames
27 /// quit after n milliseconds
29 /// quit after n frames, use fixed timestap
31 /// display error message and quit with failure
43 bool doublebuf = true;
44 int multisampling = 1;
46 Client::Config client = Client::Config();
47 HeadlessEnvironment::Config env = HeadlessEnvironment::Config();
48 Interface::Config interface = Interface::Config();
49 Server::Config server = Server::Config();
50 World::Config world = World::Config();
55 void ReadArgs(int argc, const char *const *argv);
64 void Run(HeadlessApplication &);