Ejemplo n.º 1
0
    /// <summary>
    /// 是否数据一致
    /// </summary>
    protected override bool toDataEquals(BaseData data)
    {
        SceneEnterArgData mData = (SceneEnterArgData)data;

        if (mData.location != null)
        {
            if (this.location == null)
            {
                return(false);
            }
            if (!this.location.dataEquals(mData.location))
            {
                return(false);
            }
        }
        else
        {
            if (this.location != null)
            {
                return(false);
            }
        }

        if (this.posID != mData.posID)
        {
            return(false);
        }

        if (this.useCache != mData.useCache)
        {
            return(false);
        }

        return(true);
    }
Ejemplo n.º 2
0
    /// <summary>
    /// 复制(潜拷贝)
    /// </summary>
    protected override void toShadowCopy(BaseData data)
    {
        if (!(data is SceneEnterArgData))
        {
            return;
        }

        SceneEnterArgData mData = (SceneEnterArgData)data;

        this.location = mData.location;
        this.posID    = mData.posID;
        this.useCache = mData.useCache;
    }
Ejemplo n.º 3
0
    /// <summary>
    /// 复制(深拷贝)
    /// </summary>
    protected override void toCopy(BaseData data)
    {
        if (!(data is SceneEnterArgData))
        {
            return;
        }

        SceneEnterArgData mData = (SceneEnterArgData)data;

        if (mData.location != null)
        {
            this.location = (SceneLocationData)mData.location.clone();
        }
        else
        {
            this.location = null;
            nullObjError("location");
        }

        this.posID = mData.posID;

        this.useCache = mData.useCache;
    }