Files
UnrealEngineUWP/Engine/Source/Runtime/StorageServerClient/Private/StorageServerPackageStore.h
carlmagnus nordin ffd1e2abfb ZenCook: Use the oplog for package store entries instead of writing a container header
#preflight 63720da8ee4d25f90aacf4dd
#rb per.larsson

[CL 23116204 by carlmagnus nordin in ue5-main branch]
2022-11-14 06:35:53 -05:00

48 lines
1.0 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "IO/PackageStore.h"
#if !UE_BUILD_SHIPPING
class FStorageServerConnection;
struct FFilePackageStoreEntry;
class FStorageServerPackageStoreBackend
: public IPackageStoreBackend
{
public:
FStorageServerPackageStoreBackend(FStorageServerConnection& Connection);
virtual ~FStorageServerPackageStoreBackend() = default;
virtual void OnMounted(TSharedRef<const FPackageStoreBackendContext> Context) override
{
}
virtual void BeginRead() override
{
}
virtual void EndRead() override
{
}
virtual EPackageStoreEntryStatus GetPackageStoreEntry(FPackageId PackageIde, FPackageStoreEntry& OutPackageStoreEntry) override;
virtual bool GetPackageRedirectInfo(FPackageId PackageId, FName& OutSourcePackageName, FPackageId& OutRedirectedToPackageId) override
{
return false;
}
private:
struct FStoreEntry
{
FPackageStoreExportInfo ExportInfo;
TArray<FPackageId> ImportedPackages;
TArray<FSHAHash> ShaderMapHashes;
};
TMap<FPackageId, FStoreEntry> StoreEntriesMap;
};
#endif