add examplecode for the new lua mapgen features.
This commit is contained in:
parent
18edca91c6
commit
45a09464e1
2 changed files with 1087 additions and 0 deletions
25
data/multiplayer/scenarios/test_lua_mapgen.cfg
Normal file
25
data/multiplayer/scenarios/test_lua_mapgen.cfg
Normal file
|
@ -0,0 +1,25 @@
|
|||
#textdomain wesnoth-multiplayer
|
||||
#ifdef DEBUG_MODE
|
||||
#define LOAD_LUA_MAPGEN_TEST
|
||||
#enddef
|
||||
#endif
|
||||
|
||||
#ifdef EDITOR
|
||||
#define LOAD_LUA_MAPGEN_TEST
|
||||
#enddef
|
||||
#endif
|
||||
|
||||
#ifdef LOAD_LUA_MAPGEN_TEST
|
||||
[multiplayer]
|
||||
# This id is currently hardcoded by the random map generator of the editor
|
||||
id=multiplayer_test_lua_mapgen
|
||||
name= _ "Lua Mapgen Maritime"
|
||||
description= _ "Testing new lua mapgen features"
|
||||
map_generation=lua
|
||||
[generator]
|
||||
id="lua_mapgen_maritime"
|
||||
config_name="Lua Mapgen Maritime"
|
||||
create_map = "return wesnoth.dofile('{CURRENT_DIRECTORY}/test_lua_mapgen.lua')"
|
||||
[/generator]
|
||||
[/multiplayer]
|
||||
#endif
|
1062
data/multiplayer/scenarios/test_lua_mapgen.lua
Normal file
1062
data/multiplayer/scenarios/test_lua_mapgen.lua
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue