feat: replace 'fallback weapon' with 'starting weapon'
This commit is contained in:
parent
a93e79cd1c
commit
01b69df872
12 changed files with 233 additions and 57 deletions
|
|
@ -17,22 +17,21 @@ protected:
|
|||
void _notification(int what);
|
||||
|
||||
public:
|
||||
void set_fallback_weapon(Ref<PackedScene> scene);
|
||||
Ref<PackedScene> get_fallback_weapon() const;
|
||||
|
||||
void select_weapon(WeaponBase *next);
|
||||
WeaponBase *get_current_weapon() const;
|
||||
|
||||
void pickup_weapon(Ref<PackedScene> weapon_scene);
|
||||
|
||||
void set_starting_weapon(Ref<PackedScene> weapon_scene);
|
||||
Ref<PackedScene> get_starting_weapon() const;
|
||||
|
||||
private:
|
||||
Node3D *weapon_parent{ nullptr };
|
||||
unsigned current{ 0 };
|
||||
LocalVector<WeaponBase *> weapons{ nullptr, nullptr };
|
||||
WeaponBase *current_weapon{ nullptr };
|
||||
WeaponBase *fallback_weapon{ nullptr };
|
||||
|
||||
Ref<PackedScene> fallback_weapon_scene{};
|
||||
Ref<PackedScene> starting_weapon{};
|
||||
};
|
||||
|
||||
#endif // !WEAPON_INVENTORY_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue