cleaned up code structure a bit

This commit is contained in:
Magnus Auvinen 2007-12-15 10:24:49 +00:00
parent ac9873056a
commit a2566b3ebd
77 changed files with 205 additions and 2053 deletions

View file

@ -40,9 +40,10 @@ function dc_header(output, data, script)
return os.execute(dc_compiler .. " " .. data .. " " .. script .. " -h " .. output)
end
function dc_source(output, data, script)
print("dc_source " .. PathFilename(output) .. " = " .. PathFilename(data) .. " ~ " .. PathFilename(script))
return os.execute(dc_compiler .. " " .. data .. " " .. script .. " -s " .. output)
function dc_source(output, data, script, headerfile)
print("dc_source " .. PathFilename(output) .. "+" .. PathFilename(headerfile) .. " = " .. PathFilename(data) .. " ~ " .. PathFilename(script))
cmd = dc_compiler .. " " .. data .. " " .. script .. " -s " .. output .. " " .. headerfile
return os.execute(cmd)
end
function dc_data(output, data, script)
@ -94,14 +95,14 @@ function DataCompile(datafile, scriptfile, headerfile, sourcefile, outputdatafil
datafile = Path(datafile)
scriptfile = Path(scriptfile)
headerfile = Path(headerfile)
bam_add_job("dc_header", headerfile, datafile, scriptfile)
bam_add_dependency(headerfile, datafile)
bam_add_dependency(headerfile, scriptfile)
if sourcefile then
sourcefile = Path(sourcefile)
bam_add_job("dc_source", sourcefile, datafile, scriptfile)
bam_add_job("dc_source", sourcefile, datafile, scriptfile, headerfile)
bam_add_dependency(sourcefile, datafile)
bam_add_dependency(sourcefile, scriptfile)
bam_add_dependency(sourcefile, headerfile)
@ -120,31 +121,49 @@ end
serverdata = DataCompile(
"datasrc/teewars.ds",
"datasrc/server.dts",
"src/game/server/data.h",
"src/game/server/data/server_data.cpp",
"src/game/server/data/server_internal.cpp")
"src/game/generated/gs_data.h",
"src/game/generated/gs_data.cpp",
"src/game/generated/gs_internaldata.cpp")
clientdata = DataCompile(
"datasrc/teewars.ds",
"datasrc/client.dts",
"src/game/client/data.h",
"src/game/client/data/client_data.cpp",
"src/game/client/data/client_internal.cpp")
"src/game/generated/gc_data.h",
"src/game/generated/gc_data.cpp",
"src/game/generated/gc_internaldata.cpp")
networkdata = DataCompile(
"datasrc/teewars.ds",
"datasrc/network.dts",
"src/game/protocol_ids.h")
"src/game/generated/g_protocol_ids.h",
"src/game/generated/g_protocol_ids.cpp")
nethash = CHash("src/game/nethash.c", "src/engine/protocol.h", "src/game/game_protocol.h", networkdata.header)
nethash = CHash("src/game/generated/nethash.c", "src/engine/e_protocol.h", "src/game/g_protocol.h", networkdata.header)
client_link_other = {}
if family == "windows" then
client_link_other = {ResCompile("other/icons/teewars.rc")}
end
-- [TODO: Should be in C]
function file_ext(s)
for ext in string.gfind(s, "%.%a+$") do
return string.sub(ext, 2)
end
return ""
end
function intermediate_output_func(dir, input, extension)
if not (dir == "") then
return Path(dir .. "/" .. PathBase(PathFilename(input)) .. extension)
end
return PathBase(input) .. extension
end
function build(settings)
settings.objdir = Path("objs")
settings.cc.output = intermediate_output_func
if family == "windows" then
settings.cc.flags = "/wd4244"

0
objs/createdir.txt Normal file
View file

View file

@ -2,6 +2,7 @@
import sys
import struct
import os
option_ptrsize = struct.calcsize("P")
option_intsize = struct.calcsize("l")
@ -491,10 +492,10 @@ class translator:
print >>out, ""
def emit_source_code(self, out):
def emit_source_code(self, out, header_filename):
print >>out, '''
#include "../data.h"
#include "%s"
#include <stdio.h>
#include <stdlib.h>
@ -502,7 +503,7 @@ static void patch_ptr(char **ptr, char *base)
{
*ptr = base+(size_t)(*ptr);
}
'''
''' % header_filename
for s in self.structs:
s.emit_source_code(out)
@ -611,11 +612,13 @@ output_filename = 0
coutput_filename = 0
header_filename = 0
source_filename = 0
sheader_filename = 0
if sys.argv[3] == '-h':
header_filename = sys.argv[4]
elif sys.argv[3] == '-s':
source_filename = sys.argv[4]
sheader_filename = sys.argv[5]
elif sys.argv[3] == '-d':
output_filename = sys.argv[4]
elif sys.argv[3] == '-c':
@ -629,7 +632,7 @@ translator = create_translator(script, srcdata)
if header_filename:
translator.emit_header_code(file(header_filename, "w"))
if source_filename:
translator.emit_source_code(file(source_filename, "w"))
translator.emit_source_code(file(source_filename, "w"), os.path.basename(sheader_filename))
if output_filename:
rawdata = translator.emit_data()

View file

@ -3,18 +3,18 @@
#include <string.h>
extern "C" {
#include <engine/system.h>
#include <engine/client/ui.h>
#include <engine/interface.h>
#include <engine/datafile.h>
#include <engine/config.h>
#include <engine/e_system.h>
#include <engine/client/ec_ui.h>
#include <engine/e_interface.h>
#include <engine/e_datafile.h>
#include <engine/e_config.h>
}
#include <game/client/mapres_image.h>
#include <game/client/mapres_tilemap.h>
#include <game/client/gc_mapres_image.h>
#include <game/client/gc_mapres_tilemap.h>
//#include "game/mapres_col.h"
#include <game/mapres.h>
#include <game/game.h>
#include <game/g_mapres.h>
#include <game/g_game.h>
static int font_texture = 0;
static int checker_texture = 0;

View file

@ -6,19 +6,19 @@
#include <stdio.h>
#include <math.h>
#include <engine/system.h>
#include <engine/engine.h>
#include <engine/interface.h>
#include "ui.h"
#include <engine/e_system.h>
#include <engine/e_engine.h>
#include <engine/e_interface.h>
#include "ec_ui.h"
#include <engine/protocol.h>
#include <engine/snapshot.h>
#include <engine/compression.h>
#include <engine/network.h>
#include <engine/config.h>
#include <engine/packer.h>
#include <engine/memheap.h>
#include <engine/datafile.h>
#include <engine/e_protocol.h>
#include <engine/e_snapshot.h>
#include <engine/e_compression.h>
#include <engine/e_network.h>
#include <engine/e_config.h>
#include <engine/e_packer.h>
#include <engine/e_memheap.h>
#include <engine/e_datafile.h>
#include <mastersrv/mastersrv.h>

View file

@ -2,11 +2,11 @@
#include <engine/external/glfw/include/GL/glfw.h>
#include <engine/external/pnglite/pnglite.h>
#include <engine/system.h>
#include <engine/interface.h>
#include <engine/engine.h>
#include <engine/config.h>
#include <engine/keys.h>
#include <engine/e_system.h>
#include <engine/e_interface.h>
#include <engine/e_engine.h>
#include <engine/e_config.h>
#include <engine/e_keys.h>
#include <string.h>
#include <stdio.h>

View file

@ -2,9 +2,9 @@
#include <string.h>
#include <engine/external/glfw/include/GL/glfw.h>
#include <engine/system.h>
#include <engine/interface.h>
#include <engine/config.h>
#include <engine/e_system.h>
#include <engine/e_interface.h>
#include <engine/e_config.h>
static int keyboard_state[2][1024]; /* TODO: fix this!! */
static int keyboard_current = 0;

View file

@ -1,7 +1,7 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include <engine/system.h>
#include <engine/interface.h>
#include <engine/config.h>
#include <engine/e_system.h>
#include <engine/e_interface.h>
#include <engine/e_config.h>
#include <engine/external/portaudio/portaudio.h>
#include <engine/external/wavpack/wavpack.h>

View file

@ -1,9 +1,9 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include <engine/system.h>
#include <engine/network.h>
#include <engine/interface.h>
#include <engine/config.h>
#include <engine/memheap.h>
#include <engine/e_system.h>
#include <engine/e_network.h>
#include <engine/e_interface.h>
#include <engine/e_config.h>
#include <engine/e_memheap.h>
#include <mastersrv/mastersrv.h>

View file

@ -1,8 +1,8 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include <engine/system.h>
#include <engine/interface.h>
#include <engine/config.h>
#include "ui.h"
#include <engine/e_system.h>
#include <engine/e_interface.h>
#include <engine/e_config.h>
#include "ec_ui.h"
/********************************************************
UI

View file

@ -1,5 +1,5 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include "system.h"
#include "e_system.h"
#include <string.h>
/* Format: ESDDDDDD EDDDDDDD EDD... Extended, Data, Sign */

View file

@ -4,8 +4,8 @@
#include <stdio.h>
#include <stdlib.h>
#include "system.h"
#include "config.h"
#include "e_system.h"
#include "e_config.h"
/* buffered stream for reading lines, should perhaps be something smaller */
@ -86,7 +86,7 @@ void config_reset()
#define MACRO_CONFIG_INT(name,def,min,max) config.name = def;
#define MACRO_CONFIG_STR(name,len,def) strncpy(config.name, def, len);
#include "config_variables.h"
#include "e_config_variables.h"
#undef MACRO_CONFIG_INT
#undef MACRO_CONFIG_STR
@ -127,7 +127,7 @@ void config_set(const char *line)
#define MACRO_CONFIG_INT(name,def,min,max) { if (strcmp(#name, var_str) == 0) config_set_ ## name (&config, atoi(val_str)); }
#define MACRO_CONFIG_STR(name,len,def) { if (strcmp(#name, var_str) == 0) { config_set_ ## name (&config, val_str); } }
#include "config_variables.h"
#include "e_config_variables.h"
#undef MACRO_CONFIG_INT
#undef MACRO_CONFIG_STR
@ -172,7 +172,7 @@ void config_save(const char *filename)
#define MACRO_CONFIG_INT(name,def,min,max) { char str[256]; sprintf(str, "%s=%i%s", #name, config.name, newline); io_write(file, str, strlen(str)); }
#define MACRO_CONFIG_STR(name,len,def) { io_write(file, #name, strlen(#name)); io_write(file, "=", 1); io_write(file, config.name, strlen(config.name)); io_write(file, newline, newline_len); }
#include "config_variables.h"
#include "e_config_variables.h"
#undef MACRO_CONFIG_INT
#undef MACRO_CONFIG_STR
@ -185,12 +185,12 @@ void config_save(const char *filename)
#define MACRO_CONFIG_INT(name,def,min,max) int config_get_ ## name (CONFIGURATION *c) { return c->name; }
#define MACRO_CONFIG_STR(name,len,def) const char *config_get_ ## name (CONFIGURATION *c) { return c->name; }
#include "config_variables.h"
#include "e_config_variables.h"
#undef MACRO_CONFIG_INT
#undef MACRO_CONFIG_STR
#define MACRO_CONFIG_INT(name,def,min,max) void config_set_ ## name (CONFIGURATION *c, int val) { if(min != max) { if (val < min) val = min; if (max != 0 && val > max) val = max; } c->name = val; }
#define MACRO_CONFIG_STR(name,len,def) void config_set_ ## name (CONFIGURATION *c, const char *str) { strncpy(c->name, str, len-1); c->name[sizeof(c->name)-1] = 0; }
#include "config_variables.h"
#include "e_config_variables.h"
#undef MACRO_CONFIG_INT
#undef MACRO_CONFIG_STR

View file

@ -10,7 +10,7 @@ typedef struct
{
#define MACRO_CONFIG_INT(name,def,min,max) int name;
#define MACRO_CONFIG_STR(name,len,def) char name[len];
#include "config_variables.h"
#include "e_config_variables.h"
#undef MACRO_CONFIG_INT
#undef MACRO_CONFIG_STR
} CONFIGURATION;
@ -24,13 +24,13 @@ void config_save(const char *filename);
#define MACRO_CONFIG_INT(name,def,min,max) int config_get_ ## name (CONFIGURATION *c);
#define MACRO_CONFIG_STR(name,len,def) const char *config_get_ ## name (CONFIGURATION *c);
#include "config_variables.h"
#include "e_config_variables.h"
#undef MACRO_CONFIG_INT
#undef MACRO_CONFIG_STR
#define MACRO_CONFIG_INT(name,def,min,max) void config_set_ ## name (CONFIGURATION *c, int val);
#define MACRO_CONFIG_STR(name,len,def) void config_set_ ## name (CONFIGURATION *c, const char *str);
#include "config_variables.h"
#include "e_config_variables.h"
#undef MACRO_CONFIG_INT
#undef MACRO_CONFIG_STR

View file

@ -1,5 +1,5 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include "../game/game_variables.h"
#include "../game/g_variables.h"
MACRO_CONFIG_STR(player_name, 32, "nameless tee")

View file

@ -1,6 +1,6 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include "system.h"
#include "datafile.h"
#include "e_system.h"
#include "e_datafile.h"
#include "external/zlib/zlib.h"
static const int DEBUG=0;

View file

@ -2,9 +2,9 @@
#include <string.h>
#include <stdio.h>
#include <engine/system.h>
#include <engine/interface.h>
#include <engine/config.h>
#include <engine/e_system.h>
#include <engine/e_interface.h>
#include <engine/e_config.h>
static char application_save_path[512] = {0};

View file

@ -10,7 +10,7 @@ extern "C" {
Title: Engine Interface
*/
#include "keys.h"
#include "e_keys.h"
enum
{

View file

@ -1,6 +1,6 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include <stdio.h>
#include "datafile.h"
#include "e_datafile.h"
static DATAFILE *map = 0;

View file

@ -1,5 +1,5 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include "system.h"
#include "e_system.h"
typedef struct CHUNK_t
{

View file

@ -1,6 +1,6 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include "interface.h"
#include "packer.h"
#include "e_interface.h"
#include "e_packer.h"
/* message packing */
static PACKER msg_packer;

View file

@ -2,9 +2,9 @@
#include <string.h>
#include <stdio.h>
#include "system.h"
#include "config.h"
#include "network.h"
#include "e_system.h"
#include "e_config.h"
#include "e_network.h"
/*
header (6 bytes)

View file

@ -1,7 +1,7 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include "packer.h"
#include "compression.h"
#include "e_packer.h"
#include "e_compression.h"
void packer_reset(PACKER *p)
{

View file

@ -1,5 +1,5 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include "system.h"
#include "e_system.h"
/*
Connection diagram - How the initilization works.

View file

@ -1,6 +1,6 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include "snapshot.h"
#include "compression.h"
#include "e_snapshot.h"
#include "e_compression.h"
int *snapitem_data(SNAPSHOT_ITEM *item) { return (int *)(item+1); }

View file

@ -2,7 +2,7 @@
#ifndef ENGINE_SNAPSHOT_H
#define ENGINE_SNAPSHOT_H
#include "system.h"
#include "e_system.h"
/* SNAPSHOT */

View file

@ -6,8 +6,8 @@
#include <ctype.h>
#include <time.h>
#include "detect.h"
#include "system.h"
#include "e_detect.h"
#include "e_system.h"
#if defined(CONF_FAMILY_UNIX)
#include <sys/time.h>

View file

@ -2,7 +2,7 @@
#ifndef BASE_SYSTEM_H
#define BASE_SYSTEM_H
#include "detect.h"
#include "e_detect.h"
#ifdef __cplusplus
extern "C" {

View file

@ -1,5 +1,5 @@
/* Include the auto configuration */
#include <engine/detect.h>
#include <engine/e_detect.h>
/* common part */
#include "portaudio/pa_converters.c"

View file

@ -3,20 +3,20 @@
#include <string.h>
#include <stdlib.h>
#include <engine/system.h>
#include <engine/config.h>
#include <engine/engine.h>
#include <engine/interface.h>
#include <engine/e_system.h>
#include <engine/e_config.h>
#include <engine/e_engine.h>
#include <engine/e_interface.h>
#include <engine/protocol.h>
#include <engine/snapshot.h>
#include <engine/e_protocol.h>
#include <engine/e_snapshot.h>
#include <engine/compression.h>
#include <engine/e_compression.h>
#include <engine/network.h>
#include <engine/config.h>
#include <engine/packer.h>
#include <engine/datafile.h>
#include <engine/e_network.h>
#include <engine/e_config.h>
#include <engine/e_packer.h>
#include <engine/e_datafile.h>
#include <mastersrv/mastersrv.h>

View file

@ -1 +0,0 @@
this file is here to make sure that this directory gets created

View file

@ -1,23 +1,23 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include <game/math.h>
#include <game/g_math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
extern "C" {
#include <engine/client/ui.h>
#include <engine/config.h>
#include <engine/client/ec_ui.h>
#include <engine/e_config.h>
};
#include "../game.h"
#include "../version.h"
#include "../mapres.h"
#include "mapres_image.h"
#include "mapres_tilemap.h"
#include "data.h"
#include "menu.h"
#include "cl_skin.h"
#include "cl_render.h"
#include "../g_game.h"
#include "../g_version.h"
#include "../g_mapres.h"
#include "gc_mapres_image.h"
#include "gc_mapres_tilemap.h"
#include "../generated/gc_data.h"
#include "gc_menu.h"
#include "gc_skin.h"
#include "gc_render.h"
// sound channels
enum

View file

@ -1,8 +1,8 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include <engine/system.h>
#include <engine/interface.h>
#include "mapres_image.h"
#include "../mapres.h"
#include <engine/e_system.h>
#include <engine/e_interface.h>
#include "gc_mapres_image.h"
#include "../g_mapres.h"
static int map_textures[64] = {0};
static int count = 0;

View file

@ -1,9 +1,9 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include <engine/interface.h>
#include <engine/config.h>
#include "mapres_tilemap.h"
#include "mapres_image.h"
#include "../mapres.h"
#include <engine/e_interface.h>
#include <engine/e_config.h>
#include "gc_mapres_tilemap.h"
#include "gc_mapres_image.h"
#include "../g_mapres.h"
int tilemap_init()
{

View file

@ -4,26 +4,26 @@
#include <string.h>
#include <stdlib.h>
#include <game/math.h>
#include <game/vmath.h>
#include <game/g_math.h>
#include <game/g_vmath.h>
extern "C" {
#include <engine/system.h>
#include <engine/interface.h>
#include <engine/config.h>
#include <engine/client/ui.h>
#include <engine/e_system.h>
#include <engine/e_interface.h>
#include <engine/e_config.h>
#include <engine/client/ec_ui.h>
}
#include "../mapres.h"
#include "../version.h"
#include "../game_protocol.h"
#include "../g_mapres.h"
#include "../g_version.h"
#include "../g_protocol.h"
#include "mapres_image.h"
#include "mapres_tilemap.h"
#include "gc_mapres_image.h"
#include "gc_mapres_tilemap.h"
#include "data.h"
#include "cl_render.h"
#include "cl_skin.h"
#include "../generated/gc_data.h"
#include "gc_render.h"
#include "gc_skin.h"
#include <mastersrv/mastersrv.h>
extern data_container *data;

View file

@ -1,10 +1,10 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include <string.h>
#include <stdio.h>
#include <engine/system.h>
#include <engine/interface.h>
#include "cl_skin.h"
#include "../math.h"
#include <engine/e_system.h>
#include <engine/e_interface.h>
#include "gc_skin.h"
#include "../g_math.h"
enum
{

View file

@ -1,5 +1,5 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include "../vmath.h"
#include "../g_vmath.h"
// do this better and nicer
typedef struct

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,5 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include "game.h"
#include "g_game.h"
// TODO: OPT: rewrite this smarter!
void move_point(vec2 *inout_pos, vec2 *inout_vel, float elasticity, int *bounces)

View file

@ -1,11 +1,11 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include <engine/system.h>
#include <game/math.h>
#include <engine/e_system.h>
#include <game/g_math.h>
#include <math.h>
#include "../engine/interface.h"
#include "mapres_col.h"
#include "../engine/e_interface.h"
#include "g_mapres_col.h"
#include "game_protocol.h"
#include "g_protocol.h"
inline vec2 get_direction(int angle)
{

View file

@ -1,11 +1,11 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include <engine/system.h>
#include <game/vmath.h>
#include <game/math.h>
#include <engine/e_system.h>
#include <game/g_vmath.h>
#include <game/g_math.h>
#include <math.h>
#include "../engine/interface.h"
#include "mapres_col.h"
#include "mapres.h"
#include "../engine/e_interface.h"
#include "g_mapres_col.h"
#include "g_mapres.h"
/*
Simple collision rutines!

View file

@ -1,5 +1,5 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include <game/vmath.h>
#include <game/g_vmath.h>
struct mapres_collision
{

View file

@ -1,4 +1,4 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include "nethash.c"
#include "generated/nethash.c"
#define TEEWARS_VERSION "0.3.0-dev"
#define TEEWARS_NETVERSION "0.3 " TEEWARS_NETVERSION_HASH

View file

View file

@ -1 +0,0 @@
this file is here to make sure that this directory gets created

View file

@ -1,2 +0,0 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */

View file

@ -1,6 +1,6 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include <engine/config.h>
#include "srv_common.h"
#include <engine/e_config.h>
#include "gs_common.h"
#include <string.h>
gameobject::gameobject()

View file

@ -1,6 +1,6 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include "../game.h"
#include "data.h"
#include "../g_game.h"
#include "../generated/gs_data.h"
void create_sound_global(int sound, int target=-1);

View file

@ -1,6 +1,6 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include "srv_common.h"
#include "srv_ctf.h"
#include "gs_common.h"
#include "gs_game_ctf.h"
gameobject_ctf::gameobject_ctf()
{

View file

@ -1,7 +1,7 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include <engine/config.h>
#include "srv_common.h"
#include "srv_dm.h"
#include <engine/e_config.h>
#include "gs_common.h"
#include "gs_game_dm.h"
void gameobject_dm::tick()
{

View file

@ -1,7 +1,7 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include <engine/config.h>
#include "srv_common.h"
#include "srv_tdm.h"
#include <engine/e_config.h>
#include "gs_common.h"
#include "gs_game_tdm.h"
gameobject_tdm::gameobject_tdm()
{

View file

@ -2,13 +2,12 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <engine/config.h>
#include "../version.h"
#include "game_server.h"
#include "srv_common.h"
#include "srv_ctf.h"
#include "srv_tdm.h"
#include "srv_dm.h"
#include <engine/e_config.h>
#include "../g_version.h"
#include "gs_common.h"
#include "gs_game_ctf.h"
#include "gs_game_tdm.h"
#include "gs_game_dm.h"
data_container *data = 0x0;

View file

@ -2,8 +2,8 @@
#include <string.h>
extern "C" {
#include <engine/system.h>
#include <engine/network.h>
#include <engine/e_system.h>
#include <engine/e_network.h>
}
#include "mastersrv.h"

View file

@ -1,5 +1,5 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include <engine/system.h>
#include <engine/e_system.h>
#include <cstdlib>

View file

@ -1,7 +1,7 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include <engine/config.h>
#include <engine/system.h>
#include <engine/network.h>
#include <engine/e_config.h>
#include <engine/e_system.h>
#include <engine/e_network.h>
#include <mastersrv/mastersrv.h>
#include <stdlib.h>
#include <stdio.h>

View file

@ -1,5 +1,5 @@
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#include <engine/datafile.h>
#include <engine/e_datafile.h>
int main(int argc, char **argv)
{