public static void Init() { ServerProxy.MaxMind = new DatabaseReader("Assets/GeoIP-Country.mmdb", FileAccessMode.Memory); ServerProxy.ServerSocket = new TcpServerSocket(EnvironmentSettings.Servers[ServerCore.Type][ServerCore.Id].ServerIP, 9339); ServerProxy.AccountDatabase = new CouchbaseDatabase("magic-players", "account"); ServerProxy.SessionDatabase = new RedisDatabase("magic-session"); ServerStatus.OnServerStatusChanged = ServerProxy.OnServerStatusChanged; ClientConnectionManager.Init(); ProxySessionManager.Init(); MessageHandler.Init(); ServerProxy.ServerSocket.StartAccept(); }