feat: work on running and weapon inventory
This commit is contained in:
parent
43c5863e89
commit
6cdb2cbd4f
7 changed files with 58 additions and 3 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include "scene/3d/node_3d.h"
|
||||
class AnimationPlayer;
|
||||
class PlayerCamera;
|
||||
class PlayerBody;
|
||||
|
||||
class WeaponBase : public Node3D {
|
||||
GDCLASS(WeaponBase, Node3D);
|
||||
|
|
@ -16,12 +17,15 @@ protected:
|
|||
public:
|
||||
void set_anim(AnimationPlayer *player);
|
||||
AnimationPlayer *get_anim() const;
|
||||
|
||||
PlayerCamera *get_camera() const;
|
||||
|
||||
void set_body(PlayerBody *body);
|
||||
PlayerBody *get_body() const;
|
||||
|
||||
private:
|
||||
AnimationPlayer *anim{ nullptr };
|
||||
PlayerCamera *camera{ nullptr };
|
||||
PlayerBody *body{ nullptr };
|
||||
};
|
||||
|
||||
#endif // !WEAPON_BASE_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue