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