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

Functions

int main (int argc, const char *argv[])
 Main entry point of the char-server application. More...
 

Function Documentation

◆ main()

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

Main entry point of the char-server application.

Parameters
argc
argv
Returns
integer of shutdown signal.
12{
13 std::srand(std::time(nullptr));
14
15 /* Parse Command Line Arguments */
16 if (argc > 1)
17 sChar->parse_exec_args(argv, argc);
18
19 /* Read Char Configuration */
20 if (!sChar->read_config())
21 exit(1); // Stop process if the file can't be read.
22
23 /* Initialize the Common Core */
24 sChar->initialize();
25
26 return 0;
27}
#define sChar
Definition: Char.hpp:143

References sChar.