Split client and server

This commit is contained in:
2024-01-24 00:09:50 +01:00
parent 532a1faa21
commit 26c52a00b3
59 changed files with 335 additions and 142 deletions

12
server/Database.gd Normal file
View File

@ -0,0 +1,12 @@
extends Node
var accounts := {
"user1": Account.new("user1", "password"),
"user2": Account.new("user2", "password"),
}
func get_account(username: String):
if !accounts.has(username):
return null
return accounts[username]