forked from project-ethea/After_the_Storm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase-loader.cfg
133 lines (105 loc) · 2.97 KB
/
base-loader.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#textdomain wesnoth-After_the_Storm
# LD provides a simpler, shorter way of including WML files by using only
# relative paths (to the add-on's directory).
#define LD __PATH__
{~add-ons/After_the_Storm/{__PATH__}}#enddef
# LE includes WML files using paths relative to the currently selected
# episode's directory.
#ifdef CAMPAIGN_AFTER_THE_STORM_EPISODE_I
#define LE __PATH__
{~add-ons/After_the_Storm/episode1/{__PATH__}}#enddef
#endif
#ifdef CAMPAIGN_AFTER_THE_STORM_EPISODE_II
#define LE __PATH__
{~add-ons/After_the_Storm/episode2/{__PATH__}}#enddef
#endif
#ifdef CAMPAIGN_AFTER_THE_STORM_EPISODE_III
#define LE __PATH__
{~add-ons/After_the_Storm/episode3/{__PATH__}}#enddef
#endif
#ifndef __WMLUNITS__
# DIFF includes WML conditionally depending on the selected difficulty. I
# prefer this to mainline's ON_DIFFICULTY macro, which has an exceedingly
# long name for such an ubiquitous purpose. There is no whitespace (e.g.
# tabs, newlines, blanks) around the inclusions in order to avoid issues
# when the substitution is performed in middle of a string literal.
#ifdef EASY
#define DIFF _ON_EASY _ON_NORMAL _ON_HARD
{_ON_EASY}#enddef
#endif
#ifdef NORMAL
#define DIFF _ON_EASY _ON_NORMAL _ON_HARD
{_ON_NORMAL}#enddef
#endif
#ifdef HARD
#define DIFF _ON_EASY _ON_NORMAL _ON_HARD
{_ON_HARD}#enddef
#endif
# NOTE: do not change the order in which these files are preprocessing unless
# you are very sure of what you are doing.
[lua]
code = <<
PROJECT_Y_AFTER_THE_STORM_VERSION = '>>+"{LD dist/VERSION}"+<<'
-- Global helper function table.
helper = wesnoth.require "lua/helper.lua"
-- Load local code files.
for i, file in ipairs {
'lib.lua',
'hex.lua',
'common.lua',
'optimizations.lua',
'npc.lua',
'spawner.lua',
'overrides.lua',
'theme.lua',
'wlp.lua',
'gui/bug.lua',
'gui/character_action_dialog.lua',
'gui/combo_info_dialog.lua',
'gui/item_choice_dialog.lua',
'gui/show_image.lua',
'gui/top_message.lua',
'gui/transient_message.lua',
'After_the_Storm.lua',
'version.lua',
}
do
wesnoth.dofile('~add-ons/After_the_Storm/lua/' .. file)
end
>>
[/lua]
#endif
{LD /base-debug.cfg}
{LD /mainline-strings.cfg}
{LD /base-variables.cfg}
{LD /base-math.cfg}
{LD /base-rc.cfg}
{LD /macros}
[+units]
{LD /units}
[/units]
#ifndef __WMLUNITS__
{LD /terrain-graphics}
{LD /terrain.cfg}
{LD /terrain-virtual.cfg}
{LD /ai}
{LD /themes}
#define MAP __FILE__
map_data="{LE /maps/{__FILE__}}"
#enddef
#define MASK __FILE__
mask="{LE /masks/{__FILE__}}"
#enddef
#define SHROUD_DATA __FILE__
shroud_data="{LE /masks/{__FILE__}}"
#enddef
#
# Episode-specific data files
#
{LE characters.cfg}
{LE deaths.cfg}
{LE storytxt.cfg}
{LE scenarios}
#endif
# EOF
# kate: indent-mode normal; encoding utf-8; space-indent on;