public void SendClientLoadingProgress()
    {
        Coop_Model_ClientLoadingProgress coop_Model_ClientLoadingProgress = new Coop_Model_ClientLoadingProgress();

        coop_Model_ClientLoadingProgress.id  = 1003;
        coop_Model_ClientLoadingProgress.per = coopClient.loadingPer;
        Send(coop_Model_ClientLoadingProgress, false, 0, null, null);
    }
Exemplo n.º 2
0
    protected override bool HandleCoopEvent(CoopPacket packet)
    {
        bool result = false;

        switch (packet.packetType)
        {
        case PACKET_TYPE.CLIENT_STATUS:
        {
            Coop_Model_ClientStatus model5 = packet.GetModel <Coop_Model_ClientStatus>();
            result = coopClient.OnRecvClientStatus(model5, packet);
            break;
        }

        case PACKET_TYPE.CLIENT_LOADING_PROGRESS:
        {
            Coop_Model_ClientLoadingProgress model4 = packet.GetModel <Coop_Model_ClientLoadingProgress>();
            result = coopClient.OnRecvClientLoadingProgress(model4);
            break;
        }

        case PACKET_TYPE.CLIENT_CHANGE_EQUIP:
        {
            Coop_Model_ClientChangeEquip model3 = packet.GetModel <Coop_Model_ClientChangeEquip>();
            result = coopClient.OnRecvClientChangeEquip(model3);
            break;
        }

        case PACKET_TYPE.CLIENT_BATTLE_RETIRE:
        {
            Coop_Model_ClientBattleRetire model2 = packet.GetModel <Coop_Model_ClientBattleRetire>();
            result = coopClient.OnRecvClientBattleRetire(model2);
            break;
        }

        case PACKET_TYPE.CLIENT_SERIES_PROGRESS:
        {
            Coop_Model_ClientSeriesProgress model = packet.GetModel <Coop_Model_ClientSeriesProgress>();
            result = coopClient.OnRecvClientSeriesProgress(model);
            break;
        }
        }
        return(result);
    }
Exemplo n.º 3
0
 public virtual bool OnRecvClientLoadingProgress(Coop_Model_ClientLoadingProgress model)
 {
     SetLoadingPer(model.per);
     return(true);
 }