feat: rifle pickup added to map

This commit is contained in:
Sara 2025-08-11 16:10:16 +02:00
parent 2511ac69c0
commit 6b7a092961
8 changed files with 57 additions and 6 deletions

View file

@ -3,6 +3,7 @@
#include "scene/3d/physics/shape_cast_3d.h"
class Interactable;
class WeaponInventory;
class PlayerInteractor : public ShapeCast3D {
GDCLASS(PlayerInteractor, ShapeCast3D);
@ -19,11 +20,13 @@ public:
virtual PackedStringArray get_configuration_warnings() const override;
void pickup_demo_pack();
bool try_use_demo_pack();
WeaponInventory *get_inventory() const;
private:
int num_demo_packs{ 0 };
Interactable *interactable{ nullptr };
Callable on_highlight_removed{ callable_mp(this, &self_type::highlight_removed) };
WeaponInventory *inventory{ nullptr };
static String activate_method_name;
};