push project up
This commit is contained in:
29
scenes/screens/lobby_screen/lobby_rpc.gd
Normal file
29
scenes/screens/lobby_screen/lobby_rpc.gd
Normal file
@@ -0,0 +1,29 @@
|
||||
extends Node
|
||||
|
||||
|
||||
@warning_ignore_start("unused_signal")
|
||||
signal server_host_started()
|
||||
signal match_list_entry_added(match_entry: Dictionary)
|
||||
signal match_list_entry_removed(match_id: String)
|
||||
@warning_ignore_restore("unused_signal")
|
||||
|
||||
|
||||
@rpc("authority", "call_local", "reliable")
|
||||
func match_list_add_entry(match_entry: Dictionary) -> void:
|
||||
push_warning("Received new match entry...")
|
||||
|
||||
emit_signal("match_list_entry_added", match_entry)
|
||||
|
||||
@rpc("authority", "call_local", "reliable")
|
||||
func match_list_remove_entry(match_id: String) -> void:
|
||||
push_warning("Received delete match entry...")
|
||||
|
||||
emit_signal("match_list_entry_removed", match_id)
|
||||
|
||||
@rpc("authority", "reliable")
|
||||
func receive_match_list(_match_list: Array) -> void:
|
||||
pass
|
||||
|
||||
@rpc("authority", "reliable")
|
||||
func match_list_activate_entry(_match_id: String) -> void:
|
||||
pass
|
||||
Reference in New Issue
Block a user