Skip to content

Commit

Permalink
add examplecode for the new lua mapgen features.
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Oct 20, 2018
1 parent 18edca9 commit 45a0946
Show file tree
Hide file tree
Showing 2 changed files with 1,087 additions and 0 deletions.
25 changes: 25 additions & 0 deletions data/multiplayer/scenarios/test_lua_mapgen.cfg
@@ -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

0 comments on commit 45a0946

Please sign in to comment.