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

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

        BuildingIdentityData mData = (BuildingIdentityData)data;

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

        BuildingIdentityData mData = (BuildingIdentityData)data;

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

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

        return(true);
    }