コード例 #1
0
ファイル: Account.cs プロジェクト: LennyPenny/someWorld
		public static async Task<Account> CreateAccount(string username, byte[] passwordhash, byte[] passwordsalt)
		{
			var account = new Account();
			account.AccountData = await AccountData.CreateAccountData(username, passwordhash, passwordsalt);

			return account;
		}
コード例 #2
0
ファイル: Account.cs プロジェクト: LennyPenny/someWorld
		public static async Task<Account> FromUsername(string username)
		{
			var account = new Account();
			account.AccountData = await AccountData.FromUsername(username);

			return account;
		}
コード例 #3
0
		public void Remove(Account account)
		{
			Account ignored;
			OnlineUsers.TryRemove(account.GetUsername(), out ignored);
		}
コード例 #4
0
		public void Add(Account account)
		{
			OnlineUsers.TryAdd(account.GetUsername(), account);
		}