-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugins Save #18
Comments
* All Plugins, which can be read as well, can be used for saving as well. * MapDocument class contains a new member (mWriterPluginFileName), which determines in which format the map should be saved. (It needs to be set accordingly, when opening a new File) * The plugin manager has some more conversions. * MapDocuments setFileName (only used by its saving function) is private now. Closes mapeditor#18.
Instehead of having a MapReaderInterface and MapWriterInterface, tiled could have a MapSaveInterface (or better name) and MapExportInterface Plugins using MapSaveInterface are plugins that support both saving and loading functions, that will appear on the Save and the Load dialogs and may be able to support more than one file type. The Map class, should be able to know wish format it was loaded on so when we click save it would automatically use the plugin associated. I think Tmx map support should follow the same rules and extend MapSaveInterface, so Tiled would not care about Tmx specifically as it does now, but just use it as any other Interface, it would just be the default one. |
* All Plugins, which can be read as well, can be used for saving as well. * MapDocument class contains a new member (mWriterPluginFileName), which determines in which format the map should be saved. (It needs to be set accordingly, when opening a new File) * The plugin manager has some more conversions. * MapDocuments setFileName (only used by its saving function) is private now. Closes mapeditor#18.
Plugins in tiled using the MapWriterInterface appear on the Export dialog and not on Save dialog.
Maybe we could check if the plugin also includes a MapReaderInterface, if it does, its safe to save because you can also load, if not then its better to export, since the format wont be able to be read again!
The text was updated successfully, but these errors were encountered: