コード例 #1
0
    /// <summary>
    /// 复制(潜拷贝)
    /// </summary>
    protected override void toShadowCopy(BaseData data)
    {
        base.toShadowCopy(data);

        if (!(data is GUnionSimpleData))
        {
            return;
        }

        GUnionSimpleData mData = (GUnionSimpleData)data;

        this.score = mData.score;
        this.nice  = mData.nice;
    }
コード例 #2
0
    /// <summary>
    /// 是否数据一致
    /// </summary>
    protected override bool toDataEquals(BaseData data)
    {
        if (!base.toDataEquals(data))
        {
            return(false);
        }

        GUnionSimpleData mData = (GUnionSimpleData)data;

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

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

        return(true);
    }