增加steam

This commit is contained in:
yaoyanwei
2025-08-11 15:00:21 +08:00
parent 8fda4168b3
commit 65ee6c6eeb
288 changed files with 34032 additions and 27 deletions

View File

@@ -31,6 +31,19 @@ namespace TcgEngine
}
return res.success;
}
public override async Task<bool> SteamLogin(string email, string username, string password)
{
LoginResponse res = await Client.SteamLogin(email, username, password);
if (res.success)
{
this.logged_in = true;
this.user_id = res.id;
this.username = res.username;
permission = res.permission_level;
}
return res.success;
}
public override async Task<bool> RefreshLogin()
{