Follow-up Comment #3, bug #10046 (project wesnoth):

An update regarding our last IRC discussion. I think we should stick with the
"header\n\n\mapdata" format. The = is not valid in the current map format so
wmllint can use that to determine whether or not to convert. The header part
will be a key=value list which can be parsed by a config object.
There will be two keys for now:
usage=map|mask
border_size=1 for map, 0 for mask (just in case we want to change that in the
future)

Data in a scenario has "map" or "map_data" when the usage is a map and "mask"
when it's the usage is mask. This usage allows me to implement a nice feature
in the editor and also to easier allow the masks outside the file and still
recognize them.

Stand alone map files are always gamemaps at the moment so their usage is
map.

The mapdata itself still needs to get the 1 hex border during the conversion
but no special markers, if we ever decide to allow unwalkable terrain it
shouldn't have a marker for the builder engine (which is already slow), but a
marker to generate an overlay map of unwalkable terrains. (That is if you
really want to encode it in the map data itself.) 

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?10046>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to