Ark Server API (ASA) - Wiki
|
#include <PackageWriter.h>
Classes | |
struct | FCookCapabilities |
struct | FCookedPackageInfo |
struct | FCookInfo |
struct | FPreviousCookedBytesData |
Additional Inherited Members | |
Public Types inherited from IPackageWriter | |
enum class | EWriteOptions { None = 0 , WritePackage = 0x01 , WriteSidecars = 0x02 , Write = WritePackage | WriteSidecars , ComputeHash = 0x04 , SaveForDiff = 0x08 } |
enum class | ECommitStatus { Success , Canceled , Error } |
Interface for cooking that writes cooked packages to storage usable by the runtime game.
Definition at line 214 of file PackageWriter.h.
|
virtualdefault |
|
inlineoverridevirtual |
Downcast function for IPackageWriters that implement the ICookedPackageWriters inherited interface.
Reimplemented from IPackageWriter.
Definition at line 238 of file PackageWriter.h.
|
inlinevirtual |
Downcast function for ICookedPackageWriters that implement the IPackageStoreWriter inherited interface.
Definition at line 349 of file PackageWriter.h.
Signal the start of a cooking pass
Package data may only be produced after BeginCook() has been called and before EndCook() is called
|
inlinevirtual |
Append all data to the Exports archive that would normally be done in CommitPackage, used for diffing.
Definition at line 323 of file PackageWriter.h.
Signal the end of a cooking pass.
|
inlinevirtual |
Return cook capabilities/settings this PackageWriter has/requires
Definition at line 227 of file PackageWriter.h.
|
pure virtual |
Returns an Attachment that was previously commited for the given PackageName. Returns an empty object if not found.
|
pure virtual |
Cooked package writers asynchronously hash the chunks for each package after CommitPackage. Once cooking has completed, use this to acquire the results. This is synced using void UPackage::WaitForAsyncFileWrites() - do not access the results before that completes. Non-const so that the cooking process can Move the map of hashes.
|
inlinevirtual |
Load the bytes of the previously-cooked package, used for diffing
Definition at line 316 of file PackageWriter.h.
Return the timestamp of the previous cook, or FDateTime::MaxValue to indicate previous cook should be assumed newer than any other cook data.
Definition at line 233 of file PackageWriter.h.
Delete outdated cooked data, etc.
|
inlinevirtual |
Report whether an additional save is needed and set up for it if so. Used for diffing.
Definition at line 333 of file PackageWriter.h.
|
pure virtual |
Returns an AssetRegistry describing the previous cook results. This doesn't mean a cook saved off to another directory - it means the AssetRegistry that's living in the directory we are about to cook in to.
|
pure virtual |
Signal the given cooked package(s) have been checked for changes and have not been modified since the last cook.
Remove all cooked packages from storage.
|
pure virtual |
Remove the given cooked package(s) from storage; they have been modified since the last cook.
|
pure virtual |
Read PackageData written by WriteMPCookMessageForPackage on a CookWorker. Called only on CookDirector.
|
inlinevirtual |
Modify the SaveArgs if required before the first Save. Used for diffing.
Definition at line 329 of file PackageWriter.h.
|
pure virtual |
Asynchronously create a CompactBinary Object message that replicates all of the package data from package save that is collected in memory and written at end of cook rather than being written to disk during package save. Used during MPCook to transfer this information from CookWorker to CookDirector. Called after CommitPackage, and only on CookWorkers.