Rally Rush
Loading...
Searching...
No Matches
exit_trigger.hpp
Go to the documentation of this file.
1#ifndef EXIT_TRIGGER_HPP
2#define EXIT_TRIGGER_HPP
3
4#include <godot_cpp/classes/area3d.hpp>
5
6namespace godot {
8class ExitTrigger : public Area3D {
11 static void _bind_methods();
12public:
14 virtual void _enter_tree() override;
16 void body_entered(Node3D *node);
17};
18}
19
20#endif // !EXIT_TRIGGER_HPP
Area3D that notifies the RallyRushGameMode that the player has exited the game when hit by the CarPla...
Definition exit_trigger.hpp:8
virtual void _enter_tree() override
Connect body_entered observer.
Definition exit_trigger.cpp:12
GDCLASS(ExitTrigger, Area3D)
static void _bind_methods()
Required to be a valid godot class.
Definition exit_trigger.cpp:8
void body_entered(Node3D *node)
If the entered body is a CarPlayer and the player has found 3 keys, notify the RallyRushGameMode that...
Definition exit_trigger.cpp:16
Definition beacon_powerup.cpp:6