sevivon

[DORMANT] multiplayer dreidel game for mobile devices w/ godot
git clone git://git.figbert.com/sevivon.git
Log | Files | Refs | README | LICENSE

commit 60700a34c1786e12d022a7084293aabc8f04e424
parent 554842316d23f29506ceb54d3349cca08c58381e
Author: FIGBERT <figbert@figbert.com>
Date:   Sat,  6 Feb 2021 21:06:00 -0800

Ensure consistent type hints

Diffstat:
Msrc/scripts/main.gd | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/scripts/main.gd b/src/scripts/main.gd @@ -82,7 +82,7 @@ func _start_game() -> void: rset("game_started", true) rpc("print_message_from_server", "The game has begun!") rset("current_turn", { "id": players.keys()[0], "index": 0 }) - var username = players[current_turn["id"]]["name"] + var username: String = players[current_turn["id"]]["name"] rpc("print_message_from_server", "It's %s's turn" % username) rpc("print_message_from_server", _gelt_status()) @@ -226,8 +226,8 @@ remote func print_message_from_server(message: String) -> void: ## Utility Functions -func _join_array(array: Array, delimiter: String = "") -> String: - var joined_string = "" +func _join_array(array: Array, delimiter := "") -> String: + var joined_string := "" for item in array.slice(0, -2): joined_string += "%s%s" % [item, delimiter] joined_string += str(array[-1])