forked from github/server
jsonconf reads game rules outside of kernel, so move it out.
This commit is contained in:
parent
010ff35c4a
commit
0435c9ee8b
7 changed files with 29 additions and 31 deletions
|
@ -100,6 +100,7 @@ set (ERESSEA_SRC
|
|||
reports.c
|
||||
teleport.c
|
||||
guard.c
|
||||
jsonconf.c
|
||||
prefix.c
|
||||
donations.c
|
||||
eressea.c
|
||||
|
@ -212,6 +213,7 @@ set(TESTS_SRC
|
|||
give.test.c
|
||||
guard.test.c
|
||||
json.test.c
|
||||
jsonconf.test.c
|
||||
keyword.test.c
|
||||
laws.test.c
|
||||
lighthouse.test.c
|
||||
|
|
|
@ -4,8 +4,15 @@
|
|||
|
||||
#include "bind_config.h"
|
||||
|
||||
#include "jsonconf.h"
|
||||
|
||||
#include <kernel/config.h>
|
||||
#include <kernel/jsonconf.h>
|
||||
#include <kernel/building.h>
|
||||
#include <kernel/race.h>
|
||||
#include <kernel/ship.h>
|
||||
#include <kernel/spell.h>
|
||||
#include <kernel/spellbook.h>
|
||||
#include <kernel/terrain.h>
|
||||
|
||||
#include <util/log.h>
|
||||
#include <util/language.h>
|
||||
|
@ -20,13 +27,6 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "kernel/building.h"
|
||||
#include "kernel/race.h"
|
||||
#include "kernel/ship.h"
|
||||
#include "kernel/spell.h"
|
||||
#include "kernel/spellbook.h"
|
||||
#include "kernel/terrain.h"
|
||||
|
||||
void config_reset(void) {
|
||||
free_config();
|
||||
free_nrmesssages();
|
||||
|
|
|
@ -15,26 +15,17 @@ without prior permission by the authors of Eressea.
|
|||
#include "jsonconf.h"
|
||||
|
||||
/* kernel includes */
|
||||
#include "building.h"
|
||||
#include "direction.h"
|
||||
#include "keyword.h"
|
||||
#include "equipment.h"
|
||||
#include "item.h"
|
||||
#include "messages.h"
|
||||
#include "race.h"
|
||||
#include "region.h"
|
||||
#include "resources.h"
|
||||
#include "ship.h"
|
||||
#include "terrain.h"
|
||||
#include "skill.h"
|
||||
#include "spell.h"
|
||||
#include "spellbook.h"
|
||||
#include "calendar.h"
|
||||
|
||||
/* game modules */
|
||||
#include "prefix.h"
|
||||
#include "move.h"
|
||||
#include "calendar.h"
|
||||
#include <kernel/building.h>
|
||||
#include <kernel/equipment.h>
|
||||
#include <kernel/item.h>
|
||||
#include <kernel/messages.h>
|
||||
#include <kernel/race.h>
|
||||
#include <kernel/region.h>
|
||||
#include <kernel/resources.h>
|
||||
#include <kernel/ship.h>
|
||||
#include <kernel/terrain.h>
|
||||
#include <kernel/spell.h>
|
||||
#include <kernel/spellbook.h>
|
||||
|
||||
/* util includes */
|
||||
#include <util/attrib.h>
|
||||
|
@ -48,6 +39,14 @@ without prior permission by the authors of Eressea.
|
|||
#include <util/strings.h>
|
||||
#include <util/xml.h>
|
||||
|
||||
/* game modules */
|
||||
#include "calendar.h"
|
||||
#include "direction.h"
|
||||
#include "keyword.h"
|
||||
#include "move.h"
|
||||
#include "prefix.h"
|
||||
#include "skill.h"
|
||||
|
||||
/* external libraries */
|
||||
#include <cJSON.h>
|
||||
|
|
@ -32,7 +32,6 @@ spellbook.test.c
|
|||
spell.test.c
|
||||
# terrain.test.c
|
||||
unit.test.c
|
||||
jsonconf.test.c
|
||||
# xmlreader.test.c
|
||||
)
|
||||
|
||||
|
@ -80,7 +79,6 @@ spell.c
|
|||
terrain.c
|
||||
unit.c
|
||||
xmlreader.c
|
||||
jsonconf.c
|
||||
)
|
||||
|
||||
SET(VERSION_SRC ${PROJECT_NAME}/version.c PARENT_SCOPE)
|
||||
|
|
|
@ -34,7 +34,6 @@ without prior permission by the authors of Eressea.
|
|||
|
||||
/* TODO: core code should not include these files: */
|
||||
#include "alchemy.h"
|
||||
#include "vortex.h"
|
||||
|
||||
#include <modules/score.h>
|
||||
#include <attributes/attributes.h>
|
||||
|
|
Loading…
Reference in a new issue