-
Notifications
You must be signed in to change notification settings - Fork 4
/
base-loader.cfg
135 lines (99 loc) · 3.2 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
134
135
#textdomain wesnoth-Invasion_from_the_Unknown
#
# Naia library
#
#ifhave ~add-ons/Naia/loader.cfg
{~add-ons/Naia/loader.cfg}
#else
#ifhave ./Naia/loader.cfg
#define NAIA_EMBEDDED
Invasion_from_the_Unknown#enddef
{./Naia/loader.cfg}
#endif
#endif
#ifndef NAIA_VERSION
#error Naia or a Naia base library component is missing. Cannot continue loading this add-on.
#endif
#
# Local library
#
# 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/Invasion_from_the_Unknown/{__PATH__}}#enddef
{LD /mainline-strings.cfg}
#ifndef EDITOR
#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
#define PERSISTENT_NS_IFTU
"Project_Ethea.Invasion_from_the_Unknown" #enddef
# 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_ETHEA_RECONSTRUCTION_VERSION = '>>+"{LD dist/VERSION}"+<<'
naia_register_package {
global_id = 'project_ethea.Invasion_from_the_Unknown',
name = 'Invasion from the Unknown',
i18n_name = wesnoth.textdomain('wesnoth-Invasion_from_the_Unknown')('Invasion from the Unknown'),
version = PROJECT_ETHEA_RECONSTRUCTION_VERSION,
abbreviation = 'IftU',
tracker_url = 'https://github.com/project-ethea/Invasion_from_the_Unknown/issues',
forum_thread = 'https://forums.wesnoth.org/viewtopic.php?t=43309',
maintainer_mode = filesystem.have_file('~add-ons/Invasion_from_the_Unknown/base-maint.cfg'),
}
check_host_compatibility('1.15.14', '1.16.x', {}, false)
check_addon_compatibility()
-- Load local code files.
for i, file in ipairs {
'overrides.lua',
'theme.lua',
'gui/character_descriptions_prompt.lua',
'gui/intermission_prompt.lua',
'gui/outro_teaser.lua',
'Invasion_from_the_Unknown.lua',
}
do
wesnoth.dofile('~add-ons/Invasion_from_the_Unknown/lua/' .. file)
end
>>
[/lua]
#endif
{LD /base-debug.cfg}
{LD /base-rc.cfg}
{LD /macros}
[+units]
{LD /units}
[/units]
#ifndef __WMLUNITS__
{GLOBAL_EVENTS ({LD /global-events.cfg})}
#define MAP __FILE__
map_file="~add-ons/Invasion_from_the_Unknown/maps/{__FILE__}"
#enddef
#define MASK __FILE__
mask="{LD /masks/{__FILE__}}"
#enddef
#define SHROUD_DATA __FILE__
shroud_data="{LD /masks/{__FILE__}}"
#enddef
{LD /scenarios}
#endif
#endif
# EOF
# kate: indent-mode normal; encoding utf-8; space-indent on;