0

Allow regionsets to be named in a settings.py file

This commit is contained in:
Andrew Chin
2012-01-07 15:11:19 -05:00
parent 1baf506a59
commit cb2f0129bc
8 changed files with 53 additions and 36 deletions

View File

@@ -404,11 +404,12 @@ dir but you forgot to put quotes around the directory, since it contains spaces.
render = render_things[render_name]
logging.debug("Found the following render thing: %r", render)
w = world.World(render['worldpath'])
# XXX we now construct the regionset directly
#w = world.World(render['worldpath'])
# if no dimension has been specified, just use the first one
# TODO support the case where a different dimension is specified
rset = w.get_regionset(0)
rset = world.RegionSet(render['worldpath'])
logging.debug("Using RegionSet %r", rset)
# create our TileSet from this RegionSet