game-specific files for eressea 2 & 3

This commit is contained in:
Enno Rehling 2010-03-08 23:43:15 -08:00
parent 275476aaf6
commit 9cfb41d393
5 changed files with 79 additions and 0 deletions

5
.gitignore vendored
View File

@ -1 +1,6 @@
bin/
*.ncb
*.suo
*.ncb
*.suo

17
game-e2/eressea.ini Normal file
View File

@ -0,0 +1,17 @@
[eressea]
base = .
load = setup.lua
report = reports
verbose = 0
lomem = 0
debug = 0
memcheck = 0
locales = de,en
[config]
game = eressea
source_dir = ../..
maxnmrs = 10
[editor]
color = 1

20
game-e2/setup.lua Normal file
View File

@ -0,0 +1,20 @@
local srcpath = config.source_dir
local respath = srcpath .. '/eressea/res'
local paths = {
'eressea/scripts/?.lua',
'server/scripts/?.lua',
'external/lunit/?.lua'
}
tests = {
srcpath .. '/server/scripts/tests/common.lua',
srcpath .. '/eressea/scripts/tests/eressea.lua',
}
for idx, path in pairs(paths) do
package.path = srcpath .. '/' .. path .. ';' .. package.path
end
read_xml(respath..'/config-eressea.xml', respath..'/catalog-eressea.xml')
require "init"

17
game-e3/eressea.ini Normal file
View File

@ -0,0 +1,17 @@
[eressea]
base = .
load = setup.lua
report = reports
verbose = 0
lomem = 0
debug = 0
memcheck = 0
locales = de,en
[config]
game = e3a
source_dir = ../..
maxnmrs = 10
[editor]
color = 1

20
game-e3/setup.lua Normal file
View File

@ -0,0 +1,20 @@
local srcpath = config.source_dir
local respath = srcpath .. '/example/res'
local paths = {
'eressea/scripts/?.lua',
'server/scripts/?.lua',
'external/lunit/?.lua'
}
tests = {
srcpath .. '/server/scripts/tests/common.lua',
srcpath .. '/eressea/scripts/tests/e3a.lua',
}
for idx, path in pairs(paths) do
package.path = srcpath .. '/' .. path .. ';' .. package.path
end
read_xml(respath..'/config-e3a.xml', respath..'/catalog-e3a.xml')
require "init"