Horizon Official Technical Documentation
Main.cpp File Reference
#include "Server/Zone/Zone.hpp"
#include <random>
#include <ctime>
+ Include dependency graph for Main.cpp:

Functions

int main (int argc, const char *argv[])
 Zone Server Main runtime entrypoint. More...
 

Function Documentation

◆ main()

int main ( int  argc,
const char *  argv[] 
)

Zone Server Main runtime entrypoint.

Parameters
argc
argv
Returns

Initialize the Common Core

13{
14 std::srand(std::time(nullptr));
15
16 if (argc > 1)
17 sZone->parse_exec_args(argv, argc);
18
19 /*
20 * Read Configuration Settings for
21 * the Zoneacter Server.
22 */
23 if (!sZone->read_config())
24 exit(1); // Stop process if the file can't be read.
25
26 sZone->set_config(sZone->config());
27
31 sZone->initialize();
32 return 0;
33}
#define sZone
Definition: Zone.hpp:247

References sZone.