(tools, client, server) chore:Remove GeneralService

This commit is contained in:
2025-08-29 13:35:52 +08:00
parent c3e1730152
commit 8fd5e24865
10 changed files with 33 additions and 2863 deletions

View File

@ -15,7 +15,6 @@ namespace Network
private readonly GrpcChannel _channel;
private readonly GameService.GameServiceClient _game;
private readonly GeneralService.GeneralServiceClient _general;
public GrpcClient()
{
@ -26,17 +25,11 @@ namespace Network
_channel = GrpcChannel.ForAddress(ServerAddress, channelOptions);
_general = new GeneralService.GeneralServiceClient(_channel);
_game = new GameService.GameServiceClient(_channel);
Application.quitting += () => _channel.ShutdownAsync().Wait();
}
public async Task<ServerInfo> GetServerInfo()
{
return await _general.GetServerInfoAsync(new Empty());
}
public async Task<LoginResponse> Login(string username, string password)
{
return await _game.LoginAsync(new LoginRequest { Username = username, Password = password });