ServerPassport.cs 794 B

123456789101112131415161718192021222324
  1. using DeepMMO.Protocol.Client;
  2. using DeepMMO.Server.Gate;
  3. using System;
  4. using System.Threading.Tasks;
  5. using DeepMMO.Data;
  6. namespace DeepMMO.Server
  7. {
  8. public class ServerPassport
  9. {
  10. public virtual Task<ServerPassportData> VerifyAsync(ClientEnterGateRequest req)
  11. {
  12. return Task.FromResult(new ServerPassportData(false, 0));
  13. }
  14. public virtual Task<ServerPassportEnterGame> VerifyEnterGameAsync(ClientEnterServerRequest server, ClientEnterGameRequest req)
  15. {
  16. return Task.FromResult(new ServerPassportEnterGame(){ Verified = true});
  17. }
  18. public virtual Task<string> FormatAccountAsync(ClientEnterGateRequest req)
  19. {
  20. throw new Exception("No Implement");
  21. }
  22. }
  23. }