feat: implementations of initial weapon inventory interface
This commit is contained in:
parent
6cdb2cbd4f
commit
6fa9d11af5
12 changed files with 126 additions and 11 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define PLAYER_BODY_H
|
||||
|
||||
#include "scene/3d/physics/character_body_3d.h"
|
||||
class WeaponInventory;
|
||||
|
||||
class PlayerBody : public CharacterBody3D {
|
||||
GDCLASS(PlayerBody, CharacterBody3D);
|
||||
|
|
@ -32,6 +33,8 @@ private:
|
|||
float acceleration{ 40.f };
|
||||
float jump_strength{ 3.5f };
|
||||
Vector2 movement_input{};
|
||||
|
||||
WeaponInventory *weapons;
|
||||
};
|
||||
|
||||
#endif // !PLAYER_BODY_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue