UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CookDeterminismHelper.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#if WITH_EDITOR
6
7#include "Containers/Map.h"
8#include "Containers/Set.h"
14
15class ITargetPlatform;
16class UObject;
17
18namespace UE::Cook
19{
20
22
28{
30 {
31 }
32
37 virtual const ITargetPlatform* GetTargetPlatform() = 0;
38
40 virtual void AddDiagnostic(FUtf8StringView DiagnosticName, const FCbField& Value) = 0;
41
43 virtual bool FullDDCKeysRequested() const = 0;
44};
45
51{
53 {
54 }
55
60 virtual bool IsModified() = 0;
62 virtual bool IsPrimaryAsset() = 0;
64 virtual const ITargetPlatform* GetTargetPlatform() = 0;
78 virtual FString GetCompareText() = 0;
79
84 virtual void AppendLog(FStringView LogText) = 0;
86 virtual void AppendDiagnostics() = 0;
87};
88
91{
93 {
94 }
95
97 virtual const ITargetPlatform* GetTargetPlatform() = 0;
102 virtual const TSet<UObject*>& GetModifiedExports() = 0;
107 virtual UObject* GetPrimaryAsset() = 0;
114 virtual const IDeterminismModifiedExportContext& GetExportContext(UObject* Export) = 0;
115};
116
126{
127public:
133 {
134 }
135
141 virtual void OnPackageModified(IDeterminismModifiedExportContext& ExportContext)
142 {
143 if (ExportContext.IsModified() || ExportContext.IsPrimaryAsset())
144 {
145 ExportContext.AppendDiagnostics();
146 }
147 }
148};
149
150} // namespace UE::Cook
151
152#endif // WITH_EDITOR
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition CompactBinary.h:1252
Definition RefCounting.h:213
Definition UnrealString.h.inl:34
Definition Object.h:95
Definition CookOnTheFly.h:19