Rally Rush
Loading...
Searching...
No Matches
key_pickup.hpp
Go to the documentation of this file.
1#ifndef KEY_PICKUP_HPP
2#define KEY_PICKUP_HPP
3
4#include "godot_cpp/classes/area3d.hpp"
5
6namespace godot {
8class KeyPickup : public Area3D {
9 GDCLASS(KeyPickup, Area3D);
11 static void _bind_methods();
12public:
14 virtual void _enter_tree() override;
15protected:
17 void body_entered(Node *node);
18};
19}
20
21#endif // !KEY_PICKUP_HPP
Area3D that notifies the RallyRushGameMode and destroys itself when the player enters it.
Definition key_pickup.hpp:8
virtual void _enter_tree() override
Connect body_entered observer.
Definition key_pickup.cpp:12
static void _bind_methods()
Required to be a valid godot class.
Definition key_pickup.cpp:8
GDCLASS(KeyPickup, Area3D)
void body_entered(Node *node)
Notify RallyRushGameMode that a key is found and destroy, if the entered node is a CarPlayer.
Definition key_pickup.cpp:16
Definition beacon_powerup.cpp:6