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

        PlayerPrimaryKeyData mData = (PlayerPrimaryKeyData)data;

        this.playerID     = mData.playerID;
        this.name         = mData.name;
        this.userID       = mData.userID;
        this.uid          = mData.uid;
        this.platform     = mData.platform;
        this.createAreaID = mData.createAreaID;
        this.sourceGameID = mData.sourceGameID;
    }
Exemplo n.º 2
0
    /// <summary>
    /// 是否数据一致
    /// </summary>
    protected override bool toDataEquals(BaseData data)
    {
        PlayerPrimaryKeyData mData = (PlayerPrimaryKeyData)data;

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

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

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

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

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

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

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

        return(true);
    }