online multiplayer chess game (note server currently down)
Diffstat (limited to 'Utils.gd')
-rw-r--r--Utils.gd6
1 files changed, 6 insertions, 0 deletions
diff --git a/Utils.gd b/Utils.gd
index 49232c3..0b9bb29 100644
--- a/Utils.gd
+++ b/Utils.gd
@@ -206,3 +206,9 @@ static func from_algebraic(pos: String) -> Vector2:
static func to_str(type: int) -> String:
return " NBRQK"[type].strip_edges() # if its a pawn, return nothing
+
+
+static func append_dict(dict: Dictionary, newdict: Dictionary) -> Dictionary:
+ for key in newdict:
+ dict[key] = newdict[key]
+ return dict