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