/// <summary> /// 复制(潜拷贝) /// </summary> protected override void toShadowCopy(BaseData data) { base.toShadowCopy(data); if (!(data is GUnionSimpleData)) { return; } GUnionSimpleData mData = (GUnionSimpleData)data; this.score = mData.score; this.nice = mData.nice; }
/// <summary> /// 是否数据一致 /// </summary> protected override bool toDataEquals(BaseData data) { if (!base.toDataEquals(data)) { return(false); } GUnionSimpleData mData = (GUnionSimpleData)data; if (this.score != mData.score) { return(false); } if (this.nice != mData.nice) { return(false); } return(true); }