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
Tilemap editor plugins #7665
base: dev
Are you sure you want to change the base?
Tilemap editor plugins #7665
Conversation
@@ -0,0 +1,13 @@ | |||
package com.defold.extension.editor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Questionable if the interface for editor plugins should be located here in bob?
(dissoc! cell-map (cell-index x y)))) | ||
[cell-map layer-id x y tile h-flip v-flip rotate90] | ||
; figure out where to best do this once | ||
(TilemapPlugins/init workspace/class-loader) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initialising every frame is ofc not necessary. The question is where to put this line of code?
@@ -45,13 +54,14 @@ public class PluginScanner { | |||
* This function will generate a CompileExceptionError if more than one | |||
* class in the package path extends the same base class. | |||
* | |||
* @param scanner |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to be able to pass classloader scanner from the editor
This pull request adds a plugin system for the tilemap editor, where plugins can hook into the paint and clear tile functionality of the tilemap editor. Plugins will be notified when a tile is painted or cleared and the plugin can return a list of additional tiles which should be changed based on the change to the tilemap. This can be used to implement auto tiling and similar functionality.
PR checklist