server/src/eressea.c

94 lines
1.9 KiB
C
Raw Normal View History

2010-08-08 10:06:34 +02:00
#include <platform.h>
#include "settings.h"
#include "eressea.h"
2017-08-25 08:52:15 +02:00
#include "calendar.h"
#include "chaos.h"
#include "items.h"
#include "creport.h"
#include "report.h"
#include "names.h"
#include "orderdb.h"
2017-08-25 08:52:15 +02:00
#include "reports.h"
#include "spells.h"
#include "vortex.h"
#include "wormhole.h"
2010-08-08 10:06:34 +02:00
#include <kernel/config.h>
#include <util/log.h>
#if MUSEUM_MODULE
#include <modules/museum.h>
#endif
#include <triggers/triggers.h>
#include <util/language.h>
#include <util/functions.h>
2010-08-08 10:06:34 +02:00
#include <kernel/building.h>
#include <kernel/curse.h>
#include <kernel/equipment.h>
#include <kernel/item.h>
#include <kernel/xmlreader.h>
#include <modules/gmcmd.h>
2010-08-08 10:06:34 +02:00
#include <modules/xmas.h>
2017-02-23 22:08:16 +01:00
#include <items/xerewards.h>
#include <items/weapons.h>
2010-08-08 10:06:34 +02:00
#include <attributes/attributes.h>
#include <util/message.h>
#include <races/races.h>
void game_done(void)
2010-08-08 10:06:34 +02:00
{
#ifdef CLEANUP_CODE
/* Diese Routine enfernt allen allokierten Speicher wieder. Das ist nur
* zum Debugging interessant, wenn man Leak Detection hat, und nach
* nicht freigegebenem Speicher sucht, der nicht bis zum Ende ben<EFBFBD>tigt
* wird (tempor<EFBFBD>re Hilsstrukturen) */
2010-08-08 10:06:34 +02:00
free_game();
2010-08-08 10:06:34 +02:00
creport_cleanup();
2010-08-08 10:06:34 +02:00
#ifdef REPORT_FORMAT_NR
report_cleanup();
2010-08-08 10:06:34 +02:00
#endif
#endif
calendar_cleanup();
free_functions();
free_config();
2017-08-25 08:52:15 +02:00
free_special_directions();
free_locales();
kernel_done();
orderdb_close();
2010-08-08 10:06:34 +02:00
}
void game_init(void)
2010-08-08 10:06:34 +02:00
{
orderdb_open();
kernel_init();
register_triggers();
register_xmas();
2010-08-08 10:06:34 +02:00
register_nr();
2016-09-17 22:57:22 +02:00
register_cr();
2010-08-08 10:06:34 +02:00
register_races();
register_spells();
register_names();
register_resources();
register_itemfunctions();
2010-08-08 10:06:34 +02:00
#if MUSEUM_MODULE
register_museum();
2010-08-08 10:06:34 +02:00
#endif
wormholes_register();
2010-08-08 10:06:34 +02:00
2017-02-23 22:08:16 +01:00
register_weapons();
register_xerewards();
#ifdef USE_LIBXML2
register_xmlreader();
#endif
register_attributes();
register_gmcmd();
2010-08-08 10:06:34 +02:00
chaos_register();
2010-08-08 10:06:34 +02:00
}