feat: initialized template and wrote first gameplay code
This commit is contained in:
parent
82f2cae0f6
commit
46a958f801
47 changed files with 1093 additions and 33 deletions
27
modules/wave_survival/weapon_base.h
Normal file
27
modules/wave_survival/weapon_base.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue