HaoYueTunnel/ClientCore/App.cs

35 lines
882 B
C#
Raw Normal View History

2023-05-23 17:57:24 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2023-05-25 18:30:22 +08:00
using ClientCore.Manager;
using ClientCore.Network;
2023-05-23 17:57:24 +08:00
namespace ClientCore
{
2023-05-25 13:24:51 +08:00
public class App
2023-05-23 17:57:24 +08:00
{
public static string TokenStr;
public static long RID = -1;
public static string IP;
public static int Port;
2023-05-25 18:30:22 +08:00
public static LogManager log;
2023-05-23 17:57:24 +08:00
public static NetworkHelper networkHelper;
2023-05-24 18:31:11 +08:00
public static AppLogin login;
2023-05-25 13:24:51 +08:00
public static AppChat chat;
2023-05-25 18:30:22 +08:00
public static UserMgr userMgr;
2023-05-25 13:24:51 +08:00
public static void Init(string IP, int port)
{
2023-05-25 18:30:22 +08:00
log = new LogManager();
2023-05-25 13:24:51 +08:00
networkHelper = new NetworkHelper();
login = new AppLogin();
chat = new AppChat();
2023-05-25 18:30:22 +08:00
userMgr = new UserMgr();
2023-05-25 13:24:51 +08:00
networkHelper.Init(IP, port);
}
2023-05-23 17:57:24 +08:00
}
2023-05-25 13:24:51 +08:00
}