/// <summary> /// 現在のデータが正常(実行できる状態)か返す /// </summary> /// <returns></returns> public override Define.Error VerifyData() { var baseError = base.VerifyData(); if (baseError != Define.Error.None) { return(baseError); } // clothDataはオプション if (ClothData != null) { var clothDataError = ClothData.VerifyData(); if (clothDataError != Define.Error.None) { return(clothDataError); } if (clothDataHash != ClothData.SaveDataHash) { return(Define.Error.ClothDataHashMismatch); } if (clothDataVersion != ClothData.SaveDataVersion) { return(Define.Error.ClothDataVersionMismatch); } } // clothSelectionはオプション if (ClothSelection != null) { var clothSelectionError = ClothSelection.VerifyData(); if (clothSelectionError != Define.Error.None) { return(clothSelectionError); } if (clothSelectionHash != ClothSelection.SaveDataHash) { return(Define.Error.ClothSelectionHashMismatch); } if (clothSelectionVersion != ClothSelection.SaveDataVersion) { return(Define.Error.ClothSelectionVersionMismatch); } } return(Define.Error.None); }