new AccountManager()
Properties:
Name | Type | Description |
---|---|---|
accounts |
Map.<string, Account> | |
loader |
EntityLoader |
Methods
-
addAccount(acc)
-
Parameters:
Name Type Description acc
Account -
getAccount(username) → {Account|undefined}
-
Parameters:
Name Type Description username
string -
async loadAccount(username, force)
-
Parameters:
Name Type Description username
string force
boolean Force reload data from disk
-
setLoader(loader)
-
Set the entity loader from which accounts are loaded
Parameters:
Name Type Description loader
EntityLoader