Separate headers from src and make the headers hpp

Signed-off-by: somebody_master <somebody_master@somebodyserver.mooo.com>
This commit is contained in:
2023-03-08 22:46:49 +01:00
parent 0d03a90f08
commit fe90b92792
5 changed files with 10 additions and 9 deletions

View File

@ -0,0 +1,16 @@
/* godot-cpp integration testing project.
*
* This is free and unencumbered software released into the public domain.
*/
#ifndef EXAMPLE_REGISTER_TYPES_HPP
#define EXAMPLE_REGISTER_TYPES_HPP
#include <godot_cpp/core/class_db.hpp>
using namespace godot;
void initialize_test_module(ModuleInitializationLevel p_level);
void uninitialize_test_module(ModuleInitializationLevel p_level);
#endif // EXAMPLE_REGISTER_TYPES_HPP

View File

@ -0,0 +1,17 @@
#ifndef TEST_HPP
#define TEST_HPP
#include <godot_cpp/classes/node3d.hpp>
using namespace godot;
class Test : public Node3D {
GDCLASS(Test, Node3D);
public:
void start_test();
protected:
static void _bind_methods();
};
#endif