summaryrefslogtreecommitdiff
path: root/src/gdn_header_template
diff options
context:
space:
mode:
authorAnson Bridges <bridges.anson@gmail.com>2022-09-15 16:43:08 -0400
committerAnson Bridges <bridges.anson@gmail.com>2022-09-15 16:43:08 -0400
commit7a52122ef736a9525f98c37d3e56c4c3095b61e5 (patch)
tree4eda6ebf8ed300bb32559a1cdbe8c4015f3f77d6 /src/gdn_header_template
parentaad319ddb5be108e9ca81d407bd90c843bae502d (diff)
Script for converting properly formatted .gd to a c++ template
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