feat: initialized template and wrote first gameplay code

This commit is contained in:
Sara 2025-07-14 23:03:04 +02:00
parent 82f2cae0f6
commit 46a958f801
47 changed files with 1093 additions and 33 deletions

View file

@ -0,0 +1,27 @@
#ifndef WEAPON_BASE_H
#define WEAPON_BASE_H
#include "scene/3d/node_3d.h"
class AnimationPlayer;
class PlayerCamera;
class WeaponBase : public Node3D {
GDCLASS(WeaponBase, Node3D);
static void _bind_methods();
void ready();
protected:
void _notification(int what);
public:
void set_anim(AnimationPlayer *player);
AnimationPlayer *get_anim() const;
PlayerCamera *get_camera() const;
private:
AnimationPlayer *anim{ nullptr };
PlayerCamera *camera{ nullptr };
};
#endif // !WEAPON_BASE_H