added other files to be converted

This commit is contained in:
CatAClock 2025-06-12 21:27:20 -07:00
parent b42dfa8f7a
commit 6c71f50699
8 changed files with 120 additions and 0 deletions

20
src/Bullet.cpp Normal file
View file

@ -0,0 +1,20 @@
#include "Bullet.hpp"
#include <godot_cpp/core/class_db.hpp>
#include <godot_cpp/core/property_info.hpp>
#include <godot_cpp/core/memory.hpp>
#include <godot_cpp/classes/engine.hpp>
namespace godot {
Bullet::Bullet() {
}
Bullet::~Bullet() {
}
void Bullet::_bind_methods() {
}
};

18
src/Bullet.hpp Normal file
View file

@ -0,0 +1,18 @@
#include <godot_cpp/classes/rigid_body2d.hpp>
namespace godot {
class Bullet : public RigidBody2D {
GDCLASS(Bullet, RigidBody2D)
private:
int nothing = 0;
protected:
static void _bind_methods();
public:
Bullet();
~Bullet();
};
};

20
src/Enemy.cpp Normal file
View file

@ -0,0 +1,20 @@
#include "Enemy.hpp"
#include <godot_cpp/core/class_db.hpp>
#include <godot_cpp/core/property_info.hpp>
#include <godot_cpp/core/memory.hpp>
#include <godot_cpp/classes/engine.hpp>
namespace godot {
Enemy::Enemy() {
}
Enemy::~Enemy() {
}
void Enemy::_bind_methods() {
}
};

18
src/Enemy.hpp Normal file
View file

@ -0,0 +1,18 @@
#include <godot_cpp/classes/rigid_body2d.hpp>
namespace godot {
class Enemy : public RigidBody2D {
GDCLASS(Enemy, RigidBody2D)
private:
int nothing = 0;
protected:
static void _bind_methods();
public:
Enemy();
~Enemy();
};
};

View file

@ -1,6 +1,9 @@
#include "RegisterTypes.hpp"
#include "Player.hpp"
#include "Bullet.hpp"
#include "Enemy.hpp"
#include "Wave.hpp"
#include <gdextension_interface.h>
#include <godot_cpp/core/defs.hpp>
@ -14,6 +17,9 @@ void InitializeModule(ModuleInitializationLevel p_level) {
}
GDREGISTER_CLASS(Player);
GDREGISTER_CLASS(Bullet);
GDREGISTER_CLASS(Wave);
GDREGISTER_CLASS(Enemy);
}
void UninitializeModule(ModuleInitializationLevel p_level) {

20
src/Wave.cpp Normal file
View file

@ -0,0 +1,20 @@
#include "Wave.hpp"
#include <godot_cpp/core/class_db.hpp>
#include <godot_cpp/core/property_info.hpp>
#include <godot_cpp/core/memory.hpp>
#include <godot_cpp/classes/engine.hpp>
namespace godot {
Wave::Wave() {
}
Wave::~Wave() {
}
void Wave::_bind_methods() {
}
};

18
src/Wave.hpp Normal file
View file

@ -0,0 +1,18 @@
#include <godot_cpp/classes/node2d.hpp>
namespace godot {
class Wave : public Node2D {
GDCLASS(Wave, Node2D)
private:
int nothing = 0;
protected:
static void _bind_methods();
public:
Wave();
~Wave();
};
};