Esempio n. 1
0
    /// <summary>
    ///副本任务改变
    /// </summary>
    /// <param name="buf"></param>
    private void OnInstanceMissionChange(KProtoBuf buf)
    {
        var      msg   = buf as S2C_PVE_MISSION_VALUE_CHANGE;
        PveProxy proxy = (PveProxy)GameFacade.Instance.RetrieveProxy(ProxyName.PveProxy);

        var info = new PveMissionInfoVO();

        info.ID    = msg.mission_id;
        info.Value = msg.value;

        proxy.SetPveMission(info);
        proxy.ResetCountdown(msg.left_milisecond / 1000);
    }
Esempio n. 2
0
    /// <summary>
    /// 副本任务数据
    /// </summary>
    /// <param name="buf"></param>
    private void OnInstanceMissionDatas(KProtoBuf buf)
    {
        var      msg   = buf as S2C_PVE_MISSION_VALUES;
        PveProxy proxy = (PveProxy)GameFacade.Instance.RetrieveProxy(ProxyName.PveProxy);

        var list = new List <PveMissionInfoVO>();

        for (int i = 0; i < msg.values.Count; i++)
        {
            var info = new PveMissionInfoVO();
            info.ID    = msg.values[i].mission_id;
            info.Value = msg.values[i].value;
            list.Add(info);
        }
        proxy.UpdatePveMission(list);
        proxy.ResetCountdown(msg.left_milisecond / 1000);
    }