UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CookOnTheFlyPackageStore.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6
7#if WITH_COTF
8
10#include "CookOnTheFly.h"
11#include "Misc/ScopeRWLock.h"
12
15{
16public:
17 struct FEntryInfo
18 {
20 int32 EntryIndex = INDEX_NONE;
21 };
22
23 struct FPackageStats
24 {
27 };
28
30
32 {
34 }
35
36 virtual void BeginRead() override;
37
38 virtual void EndRead() override;
39
44 bool DoesPackageExist(FPackageId PackageId);
47
49 {
50 return false;
51 }
52
53private:
60 void AddOnDiskPackages(const TArray<FPackageId>& Packages);
61 void OnCookOnTheFlyMessage(const UE::Cook::FCookOnTheFlyMessage& Message);
62 void CheckActivity();
63
64 UE::Cook::ICookOnTheFlyServerConnection& CookOnTheFlyServerConnection;
66 FRWLock EntriesLock;
76
77 const double MaxInactivityTime = 20;
78 const double TimeBetweenWarning = 10;
79 double LastClientActivtyTime = 0;
80 double LastServerActivtyTime = 0;
81 double LastWarningTime = 0;
82};
83
84#endif // WITH_COTF
@ INDEX_NONE
Definition CoreMiscDefines.h:150
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EPackageStoreEntryStatus
Definition PackageStore.h:38
bool Failed
Definition binka_ue_decode_test.cpp:18
Definition NameTypes.h:617
Definition PackageId.h:19
Definition PackageStore.h:189
virtual void OnMounted(TSharedRef< const FPackageStoreBackendContext > Context)=0
virtual bool GetPackageRedirectInfo(FPackageId PackageId, FName &OutSourcePackageName, FPackageId &OutRedirectedToPackageId)=0
virtual void EndRead()=0
virtual void BeginRead()=0
virtual EPackageStoreEntryStatus GetPackageStoreEntry(FPackageId PackageId, FName PackageName, FPackageStoreEntry &OutPackageStoreEntry)=0
Definition Array.h:670
Definition Atomic.h:538
Definition ChunkedArray.h:56
Definition UnrealString.h.inl:34
Definition SharedPointer.h:692
Definition SharedPointer.h:153
Definition CookOnTheFly.h:140
Definition CookOnTheFly.h:302
Definition CriticalSection.h:14
Definition PackageStore.h:50
Definition Tuple.h:652