Implement some overlay functions and on_map_opened callback

This commit is contained in:
Marcus Huderle
2020-05-02 16:25:35 -05:00
parent 95012838fd
commit 567a45b7e4
10 changed files with 210 additions and 19 deletions

View File

@@ -9,6 +9,7 @@
enum CallbackType {
OnBlockChanged,
OnMapOpened,
};
class Scripting
@@ -19,6 +20,7 @@ public:
static QJSValue dimensions(int width, int height);
static void init(MainWindow *mainWindow);
static void cb_MetatileChanged(int x, int y, Block prevBlock, Block newBlock);
static void cb_MapOpened(QString mapName);
private:
QJSEngine *engine;