summaryrefslogtreecommitdiff
path: root/src/gdn_header_template
diff options
context:
space:
mode:
Diffstat (limited to 'src/gdn_header_template')
-rw-r--r--src/gdn_header_template27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/gdn_header_template b/src/gdn_header_template
new file mode 100644
index 0000000..d6e3d3e
--- /dev/null
+++ b/src/gdn_header_template
@@ -0,0 +1,27 @@
+#ifndef {HEADER_NAME}
+#define {HEADER_NAME}
+
+#include <Godot.hpp>
+#include <{BASE_CLASS_NAME}.hpp>
+
+namespace godot {
+
+class {CLASS_NAME} : public {BASE_CLASS_NAME} {
+ GODOT_CLASS({CLASS_NAME}, {BASE_CLASS_NAME})
+
+private:
+{VARS}
+
+public:
+ static void _register_methods();
+
+ {CLASS_NAME}();
+ ~{CLASS_NAME}();
+
+ void _init();
+
+{FUNCS}
+};
+
+}
+#endif