feat: implemented basics for weapons
This commit is contained in:
parent
6fa9d11af5
commit
aecc40ed6e
15 changed files with 163 additions and 51 deletions
|
|
@ -5,6 +5,7 @@
|
|||
class AnimationPlayer;
|
||||
class PlayerCamera;
|
||||
class PlayerBody;
|
||||
class PlayerInput;
|
||||
|
||||
class WeaponBase : public Node3D {
|
||||
GDCLASS(WeaponBase, Node3D);
|
||||
|
|
@ -17,6 +18,7 @@ protected:
|
|||
public:
|
||||
void set_anim(AnimationPlayer *player);
|
||||
AnimationPlayer *get_anim() const;
|
||||
PlayerInput *get_input() const;
|
||||
PlayerCamera *get_camera() const;
|
||||
|
||||
void set_body(PlayerBody *body);
|
||||
|
|
@ -27,6 +29,7 @@ public:
|
|||
virtual void notify_selected() {}
|
||||
|
||||
private:
|
||||
PlayerInput *input{ nullptr };
|
||||
AnimationPlayer *anim{ nullptr };
|
||||
PlayerCamera *camera{ nullptr };
|
||||
PlayerBody *body{ nullptr };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue