12 lines
230 B
GDScript
12 lines
230 B
GDScript
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] |