示例#1
0
    /// <summary>
    /// 复制(潜拷贝)
    /// </summary>
    protected override void toShadowCopy(BaseData data)
    {
        if (!(data is GameServerRunData))
        {
            return;
        }

        GameServerRunData mData = (GameServerRunData)data;

        this.id        = mData.id;
        this.onlineNum = mData.onlineNum;
    }
示例#2
0
    /// <summary>
    /// 是否数据一致
    /// </summary>
    protected override bool toDataEquals(BaseData data)
    {
        GameServerRunData mData = (GameServerRunData)data;

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

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

        return(true);
    }