예제 #1
0
    public void Init()
    {
        if (IsInit == true)
        {
            return;
        }

        IsInit = true;
        ObscuredPrefs.preservePlayerPrefs = true;
        game_server.InitServer(SHSavedData.AccountIdx, server_uri, "C2L", OnError);

        game_server.AddCommonHandler <NetworkCore.PacketError>(OnPacketError);
        game_server.AddPreHandler <C2G.DailyIndex>(OnDailyIndex);
        game_server.AddPreHandler <C2G.ReconnectInfo>(OnReconnectInfo);
        game_server.AddPostHandler <C2G.QuestProgress>(OnQuestProgress);
        game_server.AddPostHandler <C2G.UnreadMail>(OnUnreadMail);
        game_server.AddPostHandler <C2G.NotifyMenu>(OnNotifyMenu);

        game_server.PostCallback = Networking.Instance.OnPostCallback;

        NotifyMenu = new C2G.NotifyMenu();
        ResetConnectingState();
    }
예제 #2
0
 void OnNotifyMenu(CS_Client server, HTTPRequest request, object send_packet, C2G.NotifyMenu packet)
 {
     NotifyMenu = packet;
 }