online multiplayer chess game (note server currently down)
Diffstat (limited to 'Utils.gd')
| -rw-r--r-- | Utils.gd | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |