mirror of
https://github.com/godotengine/gdnative-demos.git
synced 2026-01-01 05:48:13 +03:00
13 lines
287 B
C++
13 lines
287 B
C++
#include "wall.hpp"
|
|
|
|
void Wall::_on_wall_area_entered(Ball *p_ball) {
|
|
if (p_ball->get_name() == "Ball") {
|
|
// Ball went out of game area, reset.
|
|
p_ball->reset();
|
|
}
|
|
}
|
|
|
|
void Wall::_register_methods() {
|
|
godot::register_method("_on_wall_area_entered", &Wall::_on_wall_area_entered);
|
|
}
|