new MapEditor parameters, struct editor uses MapEditor.
clean MapEditor (almost) from ConfigScript (use func parameters)