cards are now distributed and displayed among all clients
This commit is contained in:
@@ -37,7 +37,7 @@ signal received_chat_message(client_name: String, message: String)
|
||||
signal connection_status_changed(new_status: ConnectionStatus)
|
||||
|
||||
signal client_order_received(client_ids: Array[String])
|
||||
signal cards_received(card_ids: Array[int])
|
||||
signal cards_received(cards: Dictionary)
|
||||
|
||||
enum ConnectionStatus {
|
||||
DISCONNECTED,
|
||||
@@ -127,8 +127,8 @@ func _handle_response(response: String) -> void:
|
||||
playing_order.assign(data["playing_order"])
|
||||
client_order_received.emit.call_deferred(playing_order)
|
||||
|
||||
var received_cards: Array[int] = []
|
||||
received_cards.assign(data["cards"])
|
||||
var received_cards = data["cards"]
|
||||
print(received_cards)
|
||||
cards_received.emit.call_deferred(received_cards)
|
||||
"client_submitted_bet":
|
||||
print(data)
|
||||
|
||||
Reference in New Issue
Block a user