ServerInfo.cs 772 B

1234567891011121314151617181920212223242526272829303132
  1. using System.Collections.Generic;
  2. namespace ET.Client
  3. {
  4. public class ServerInfo
  5. {
  6. public string ShowName;
  7. public string Ip;
  8. public int Port;
  9. public string HostStr { get { return Ip + ":" + Port; } }
  10. public static List<ServerInfo> ServerList;
  11. static ServerInfo()
  12. {
  13. ServerList = new(){
  14. new ServerInfo{
  15. ShowName = "本地[localhost:30300]",
  16. Ip = "127.0.0.1",
  17. Port = 30300
  18. },
  19. new ServerInfo{
  20. ShowName = "外网[47.122.5.112:30300]",
  21. Ip = "47.122.5.112",
  22. Port = 30300
  23. },
  24. };
  25. }
  26. }
  27. }