HaoYueNet/Simple/ClientCore/App.cs

30 lines
776 B
C#
Raw Permalink Normal View History

2023-12-14 18:15:04 +08:00
using ClientCore.Manager;
2023-05-25 13:46:54 +08:00
using ClientCore.Network;
namespace ClientCore
{
public class App
{
public static string TokenStr;
public static long RID = -1;
public static string IP;
public static int Port;
2023-05-25 18:04:01 +08:00
public static LogManager log;
2023-05-25 13:46:54 +08:00
public static NetworkHelper networkHelper;
public static AppLogin login;
public static AppChat chat;
2023-12-14 18:15:04 +08:00
public static UserDataManager user;
2023-05-25 13:46:54 +08:00
public static void Init(string IP, int port)
{
2023-05-25 18:04:01 +08:00
log = new LogManager();
2023-05-25 13:46:54 +08:00
networkHelper = new NetworkHelper();
login = new AppLogin();
chat = new AppChat();
2023-12-14 18:15:04 +08:00
user = new UserDataManager();
2023-05-25 13:46:54 +08:00
networkHelper.Init(IP, port);
}
}
}