some meshgen and map rendering updates
[voxelands-alt.git] / src / server / servermain.c
blobc190c2dd5058bab421195a01bb97b1de94487592
1 /************************************************************************
2 * servermain.c
3 * voxelands - 3d voxel world sandbox game
4 * Copyright (C) Lisa 'darkrose' Milne 2016 <lisa@ltmnet.com>
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 * See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>
18 ************************************************************************/
20 #include "common.h"
21 #include "path.h"
22 #include "net.h"
23 #include "content.h"
25 int main(int argc, char** argv)
28 command_init();
29 path_init();
30 config_init(argc,argv);
31 time_init();
32 intl_init();
33 sys_console_init();
34 net_init();
35 content_init();
37 /* init server */
39 /* start game server */
41 /* start http server */
43 /* main loop */
45 while (1) {
48 /* stop http server */
50 /* stop game server */
52 /* exit server */
54 content_exit();
55 net_exit();
56 config_save(NULL,NULL,NULL);
57 path_exit();
59 return 0;