Beispiel #1
0
    /// <summary>
    /// 通过List,发送给需要改变状态为select的卡牌
    /// </summary>
    /// <param name="list"></param>
    public void PostSendCardToSelectStatus(List <uint> list, ECardStatus status)
    {
        ArgsCardStatus     msg  = new ArgsCardStatus();
        IEnumerator <uint> iMsg = list.GetEnumerator();

        while (iMsg.MoveNext())
        {
            msg.idList.Add(iMsg.Current);
        }
        msg.status = status;
        NotificationCenter.Instance().PostDispatchEvent((uint)ENotificationMsgType.EChangeCardSelectStatus, msg);
    }
Beispiel #2
0
    void UpdateCardStatus(LocalNotification e)
    {
        ArgsCardStatus args = e.param as ArgsCardStatus;

        if (args != null)
        {
            if (args.idList.Contains(this.mId))
            {
                SwitchStatus(args.status);
            }
        }
    }
Beispiel #3
0
    void PostCardsToNormalStatus()
    {
        ArgsCardStatus     msg   = new ArgsCardStatus();
        IEnumerator <uint> iters = SelfCardsManager.Instance.GetOwnCardIdList().GetEnumerator();

        while (iters.MoveNext())
        {
            msg.idList.Add(iters.Current);
        }
        msg.status = ECardStatus.ENormal;

        NotificationCenter.Instance().PostDispatchEvent((uint)ENotificationMsgType.EChangeCardSelectStatus, msg);
    }