Beispiel #1
0
    /// <summary>
    /// 复制(深拷贝)
    /// </summary>
    protected override void toCopy(BaseData data)
    {
        base.toCopy(data);

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

        TeamSimpleData mData = (TeamSimpleData)data;

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

        TeamSimpleData mData = (TeamSimpleData)data;

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

        return(true);
    }