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

@ -3,7 +3,7 @@
* This is free and unencumbered software released into the public domain.
*/
#include "register_types.h"
#include "register_types.hpp"
#include <gdextension_interface.h>
@ -11,7 +11,7 @@
#include <godot_cpp/core/defs.hpp>
#include <godot_cpp/godot.hpp>
#include "test.h"
#include "test.hpp"
using namespace godot;

View File

@ -1,16 +0,0 @@
/* godot-cpp integration testing project.
*
* This is free and unencumbered software released into the public domain.
*/
#ifndef EXAMPLE_REGISTER_TYPES_H
#define EXAMPLE_REGISTER_TYPES_H
#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_H

View File

@ -1,4 +1,4 @@
#include "test.h"
#include "test.hpp"
#include <godot_cpp/variant/utility_functions.hpp>

View File

@ -1,17 +0,0 @@
#ifndef TEST_H
#define TEST_H
#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