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

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

        CreateTeamData mData = (CreateTeamData)data;

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

        CreateTeamData mData = (CreateTeamData)data;

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

        return(true);
    }