From 7a52122ef736a9525f98c37d3e56c4c3095b61e5 Mon Sep 17 00:00:00 2001 From: Anson Bridges Date: Thu, 15 Sep 2022 16:43:08 -0400 Subject: Script for converting properly formatted .gd to a c++ template --- src/gdn_src_template | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/gdn_src_template (limited to 'src/gdn_src_template') diff --git a/src/gdn_src_template b/src/gdn_src_template new file mode 100644 index 0000000..35c86fb --- /dev/null +++ b/src/gdn_src_template @@ -0,0 +1,17 @@ +#include "{NEW_FILE_BASE}.h" + +using namespace godot; + +{CLASS_NAME}::{CLASS_NAME} () { } +{CLASS_NAME}::~{CLASS_NAME} () { } + +void {CLASS_NAME}::_register_methods() { +{REGISTER_METHODS} +{REGISTER_VARS} +} + +void {CLASS_NAME}::_init() { + {INIT_VARS} +} + +{FULL_FUNCS} -- cgit v1.2.3