summaryrefslogtreecommitdiff
path: root/plugins/hello_gdextension/src/main/cpp/jni/plugin_manager.h
blob: 473a7e64ec8b875b049b4d50ea8768fa78728197 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef PLUGIN_MANAGER_H
#define PLUGIN_MANAGER_H

#include <godot_cpp/variant/string.hpp>

#include "../gdexample.h"

namespace godot {

class PluginManager {
public:
    static PluginManager *get_singleton();

    void add_gdexample_node(const String &p_parent_node_path);

    void toggle_visibility(bool p_visible);

private:
    PluginManager();

    ~PluginManager();

    static Node *get_node(const String &p_node_path);

    static PluginManager *singleton;

    GDExample *gdexample_node = nullptr;
};

}

#endif // PLUGIN_MANAGER_H