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