Ejemplo n.º 1
0
    public void RecieveSingleData(stRequstRechargePropertyUserCmd_CS cmd)
    {
        //消费
        if (cmd.type == 0)
        {
            DayCost = cmd.daymoney;
            AllCost = cmd.allmoney;
        }
        else if (cmd.type == 1)
        {
            MoneyAreCost.Add(cmd.signalmoney);
            DayRecharge = cmd.daymoney;
            AllRecharge = cmd.allmoney;

            //单日累计充值人民币
            this.m_dayAllRMB = cmd.dayrmb;

            //周充值
            for (int i = 0; i < cmd.week.Count; i++)
            {
                for (int j = 0; j < this.m_lstWeekRech.Count; j++)
                {
                    if (this.m_lstWeekRech[j].money == cmd.week[i].money)
                    {
                        this.m_lstWeekRech[j].times = cmd.week[i].times;
                    }
                }
            }
        }


        UpdateActivityData();

        Engine.Utility.EventEngine.Instance().DispatchEvent((int)Client.GameEventID.RECHARGESINGLEDATA, null);
        if (cmd.IsFirst == 1)
        {
            Client.stFirstRecharge fir = new Client.stFirstRecharge();
            fir.rechargeId = cmd.id;
            DataManager.Manager <Mall_HuangLingManager>().AlreadyFirstRecharge.Add(cmd.id);
            Engine.Utility.EventEngine.Instance().DispatchEvent((int)Client.GameEventID.ISFIRSTRECHARGE, fir);
        }

        //累充
        if (IsWeekRechargeReach())
        {
            //有累计奖励达成
            stShowMainPanelRedPoint st = new stShowMainPanelRedPoint()
            {
                modelID   = (int)WarningEnum.Accumulative,
                direction = (int)WarningDirection.None,
                bShowRed  = true,
            };
            Engine.Utility.EventEngine.Instance().DispatchEvent((int)Client.GameEventID.MAINPANEL_SHOWREDWARING, st);
        }
    }
Ejemplo n.º 2
0
 public void RecieveSingleActiveData(stRequstRechargePropertyUserCmd_CS cmd)
 {
     DataManager.Manager <ActivityManager>().RecieveSingleData(cmd);
 }