示例#1
0
    public override void onUpdateSync <T>(WrapProperty wrapProperty, List <Sync <T> > syncs)
    {
        if (WrapProperty.checkError(wrapProperty))
        {
            return;
        }
        if (wrapProperty.p is UIData)
        {
            switch ((UIData.Property)wrapProperty.n)
            {
            case UIData.Property.state:
            {
                ValueChangeUtils.replaceCallBack(this, syncs);
                dirty = true;
            }
            break;

            default:
                Logger.LogError("Don't process: " + wrapProperty + "; " + this);
                break;
            }
            return;
        }
        // Child
        if (wrapProperty.p is State)
        {
            dirty = true;
            return;
        }
        Logger.LogError("Don't process: " + wrapProperty + "; " + syncs + "; " + this);
    }
示例#2
0
    public override void onUpdateSync <T>(WrapProperty wrapProperty, List <Sync <T> > syncs)
    {
        if (WrapProperty.checkError(wrapProperty))
        {
            return;
        }
        if (wrapProperty.p is UIData)
        {
            switch ((UIData.Property)wrapProperty.n)
            {
            case UIData.Property.toastData:
            {
                ValueChangeUtils.replaceCallBack(this, syncs);
                dirty = true;
            }
            break;

            case UIData.Property.toastMessageUI:
            {
                ValueChangeUtils.replaceCallBack(this, syncs);
                dirty = true;
            }
            break;

            default:
                Debug.LogError("unknown wrapProperty: " + wrapProperty + "; " + this);
                break;
            }
            return;
        }
        if (wrapProperty.p is ToastData)
        {
            switch ((ToastData.Property)wrapProperty.n)
            {
            case ToastData.Property.messages:
                dirty = true;
                break;

            case ToastData.Property.maxIndex:
                break;

            case ToastData.Property.state:
                dirty = true;
                break;

            default:
                Debug.LogError("unknown wrapProperty: " + wrapProperty + "; " + this);
                break;
            }
            return;
        }
        if (wrapProperty.p is ToastMessageUI.UIData)
        {
            return;
        }
        Debug.LogError("Don't process: " + wrapProperty + "; " + syncs + "; " + this);
    }
示例#3
0
        public override void onUpdateSync <T>(WrapProperty wrapProperty, List <Sync <T> > syncs)
        {
            if (WrapProperty.checkError(wrapProperty))
            {
                return;
            }
            if (wrapProperty.p is Appear)
            {
                switch ((Appear.Property)wrapProperty.n)
                {
                case Appear.Property.toastMessage:
                    break;

                default:
                    Logger.LogError("Don't process: " + wrapProperty + "; " + this);
                    break;
                }
                return;
            }
            Logger.LogError("Don't process: " + data + "; " + syncs + "; " + this);
        }
示例#4
0
        public override void onUpdateSync <T>(WrapProperty wrapProperty, List <Sync <T> > syncs)
        {
            if (WrapProperty.checkError(wrapProperty))
            {
                return;
            }
            if (wrapProperty.p is Hide)
            {
                switch ((Hide.Property)wrapProperty.n)
                {
                case Hide.Property.toastMessage:
                    dirty = true;
                    break;

                default:
                    Logger.LogError("Don't process: " + wrapProperty + "; " + this);
                    break;
                }
                return;
            }
            // Parent
            if (wrapProperty.p is ToastMessageUI.UIData)
            {
                switch ((ToastMessageUI.UIData.Property)wrapProperty.n)
                {
                case ToastMessageUI.UIData.Property.toastMessage:
                    dirty = true;
                    break;

                case ToastMessageUI.UIData.Property.state:
                    break;

                default:
                    Logger.LogError("Don't process: " + wrapProperty + "; " + this);
                    break;
                }
                return;
            }
            Logger.LogError("Don't process: " + data + "; " + syncs + "; " + this);
        }