meat_madness_redux/godot/global_event_bus.gd

17 lines
657 B
GDScript3
Raw Normal View History

2022-11-27 13:31:09 -07:00
extends Node
# Player enters or leaves an area for a block where they should start slowly sinking into it
signal player_entered_meat_sink
signal player_exited_meat_sink
2022-12-27 13:24:35 -07:00
signal player_walkie_talkie_state_change(is_active)
signal player_objective_ping(who, distance)
2023-01-04 12:49:02 -07:00
signal new_ambient_music_start
2022-11-27 13:31:09 -07:00
2022-12-27 13:24:35 -07:00
# This is only here to remove warnings about these signals not getting called (they get called by other nodes)
2022-11-27 13:31:09 -07:00
func never_called():
emit_signal("player_entered_meat_sink")
emit_signal("player_exited_meat_sink")
2022-12-27 13:24:35 -07:00
emit_signal("player_walkie_talkie_state_change", false)
emit_signal("player_objective_ping", null, 0.0)
2023-01-04 12:49:02 -07:00
emit_signal("new_ambient_music_start")