| // Copyright Epic Games, Inc. All Rights Reserved. | |
| ULyraExperienceActionSet::ULyraExperienceActionSet() | |
| { | |
| } | |
| EDataValidationResult ULyraExperienceActionSet::IsDataValid(FDataValidationContext& Context) const | |
| { | |
| EDataValidationResult Result = CombineDataValidationResults(Super::IsDataValid(Context), EDataValidationResult::Valid); | |
| int32 EntryIndex = 0; | |
| for (const UGameFeatureAction* Action : Actions) | |
| { | |
| if (Action) | |
| { | |
| EDataValidationResult ChildResult = Action->IsDataValid(Context); | |
| Result = CombineDataValidationResults(Result, ChildResult); | |
| } | |
| else | |
| { | |
| Result = EDataValidationResult::Invalid; | |
| Context.AddError(FText::Format(LOCTEXT("ActionEntryIsNull", "Null entry at index {0} in Actions"), FText::AsNumber(EntryIndex))); | |
| } | |
| ++EntryIndex; | |
| } | |
| return Result; | |
| } | |
| void ULyraExperienceActionSet::UpdateAssetBundleData() | |
| { | |
| Super::UpdateAssetBundleData(); | |
| for (UGameFeatureAction* Action : Actions) | |
| { | |
| if (Action) | |
| { | |
| Action->AddAdditionalAssetBundleData(AssetBundleData); | |
| } | |
| } | |
| } | |