# Rally Rush: src/key_pickup.hpp Source File

Loading...
Searching...
No Matches
key_pickup.hpp
Go to the documentation of this file.
#ifndef KEY_PICKUP_HPP
#define KEY_PICKUP_HPP
#include "godot_cpp/classes/area3d.hpp"
namespace godot {
class KeyPickup : public Area3D {
GDCLASS(KeyPickup, Area3D);
static void _bind_methods();
public:
virtual void _enter_tree() override;
protected:
void body_entered(Node *node);
};
}
#endif // !KEY_PICKUP_HPP
godot::KeyPickup
Area3D that notifies the RallyRushGameMode and destroys itself when the player enters it.
Definition key_pickup.hpp:8
godot::KeyPickup::_enter_tree
virtual void _enter_tree() override
Connect body_entered observer.
Definition key_pickup.cpp:12
godot::KeyPickup::_bind_methods
static void _bind_methods()
Required to be a valid godot class.
Definition key_pickup.cpp:8
godot::KeyPickup::GDCLASS
GDCLASS(KeyPickup, Area3D)
godot::KeyPickup::body_entered
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
godot
Definition beacon_powerup.cpp:6