12 lines
230 B
GDScript3
Raw Normal View History

2024-01-23 23:09:50 +00:00
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]