Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FPackageFileVersion Struct Reference

#include <ObjectVersion.h>

Public Member Functions

 FPackageFileVersion ()=default
 
 FPackageFileVersion (int32 UE4Version, EUnrealEngineObjectUE5Version UE5Version)
 
void Reset ()
 
int32 ToValue () const
 
bool operator!= (EUnrealEngineObjectUE4Version Version) const
 
bool operator< (EUnrealEngineObjectUE4Version Version) const
 
bool operator>= (EUnrealEngineObjectUE4Version Version) const
 
bool operator!= (EUnrealEngineObjectUE5Version Version) const
 
bool operator< (EUnrealEngineObjectUE5Version Version) const
 
bool operator>= (EUnrealEngineObjectUE5Version Version) const
 
bool IsCompatible (const FPackageFileVersion &Other) const
 
bool operator== (const FPackageFileVersion &Other) const
 
bool operator!= (const FPackageFileVersion &Other) const
 

Static Public Member Functions

static FPackageFileVersion CreateUE4Version (int32 Version)
 
static FPackageFileVersion CreateUE4Version (EUnrealEngineObjectUE4Version Version)
 
static FPackageFileVersion FromCbObject (const FCbObject &Obj)
 

Public Attributes

int32 FileVersionUE4 = 0
 
int32 FileVersionUE5 = 0
 

Friends

FArchiveoperator<< (FArchive &Ar, FPackageFileVersion &Version)
 
FCbWriteroperator<< (FCbWriter &Writer, const FPackageFileVersion &Version)
 

Detailed Description

This object combines all of our version enums into a single easy to use structure which allows us to update older version numbers independently of the newer version numbers.

Definition at line 732 of file ObjectVersion.h.

Constructor & Destructor Documentation

◆ FPackageFileVersion() [1/2]

FPackageFileVersion::FPackageFileVersion ( )
default

◆ FPackageFileVersion() [2/2]

FPackageFileVersion::FPackageFileVersion ( int32 UE4Version,
EUnrealEngineObjectUE5Version UE5Version )
inline

Definition at line 735 of file ObjectVersion.h.

Member Function Documentation

◆ CreateUE4Version() [1/2]

static FPackageFileVersion FPackageFileVersion::CreateUE4Version ( EUnrealEngineObjectUE4Version Version)
static
+ Here is the caller graph for this function:

◆ CreateUE4Version() [2/2]

static FPackageFileVersion FPackageFileVersion::CreateUE4Version ( int32 Version)
static

Creates and returns a FPackageFileVersion based on a single EUnrealEngineObjectUEVersion and no other versions.

◆ FromCbObject()

static FPackageFileVersion FPackageFileVersion::FromCbObject ( const FCbObject & Obj)
static

◆ IsCompatible()

bool FPackageFileVersion::IsCompatible ( const FPackageFileVersion & Other) const
inline

Returns true if this object is compatible with the FPackageFileVersion passed in as the parameter. This means that all version numbers for the current object are equal or greater than the corresponding version numbers of the other structure.

Definition at line 807 of file ObjectVersion.h.

◆ operator!=() [1/3]

bool FPackageFileVersion::operator!= ( const FPackageFileVersion & Other) const
inline

FPackageFileVersion comparisons

Definition at line 819 of file ObjectVersion.h.

+ Here is the call graph for this function:

◆ operator!=() [2/3]

bool FPackageFileVersion::operator!= ( EUnrealEngineObjectUE4Version Version) const
inline

UE4 version comparisons

Definition at line 767 of file ObjectVersion.h.

◆ operator!=() [3/3]

bool FPackageFileVersion::operator!= ( EUnrealEngineObjectUE5Version Version) const
inline

UE5 version comparisons

Definition at line 785 of file ObjectVersion.h.

◆ operator<() [1/2]

bool FPackageFileVersion::operator< ( EUnrealEngineObjectUE4Version Version) const
inline

UE4 version comparisons

Definition at line 773 of file ObjectVersion.h.

◆ operator<() [2/2]

bool FPackageFileVersion::operator< ( EUnrealEngineObjectUE5Version Version) const
inline

UE5 version comparisons

Definition at line 791 of file ObjectVersion.h.

+ Here is the caller graph for this function:

◆ operator==()

bool FPackageFileVersion::operator== ( const FPackageFileVersion & Other) const
inline

FPackageFileVersion comparisons

Definition at line 813 of file ObjectVersion.h.

+ Here is the caller graph for this function:

◆ operator>=() [1/2]

bool FPackageFileVersion::operator>= ( EUnrealEngineObjectUE4Version Version) const
inline

UE4 version comparisons

Definition at line 779 of file ObjectVersion.h.

◆ operator>=() [2/2]

bool FPackageFileVersion::operator>= ( EUnrealEngineObjectUE5Version Version) const
inline

UE5 version comparisons

Definition at line 797 of file ObjectVersion.h.

+ Here is the caller graph for this function:

◆ Reset()

void FPackageFileVersion::Reset ( )
inline

Set all versions to the default state

Definition at line 743 of file ObjectVersion.h.

◆ ToValue()

int32 FPackageFileVersion::ToValue ( ) const
inline

Returns the highest valid version number which is considered to be the 'true' version number

Definition at line 754 of file ObjectVersion.h.

Friends And Related Symbol Documentation

◆ operator<< [1/2]

FArchive & operator<< ( FArchive & Ar,
FPackageFileVersion & Version )
friend

Serialization members

◆ operator<< [2/2]

FCbWriter & operator<< ( FCbWriter & Writer,
const FPackageFileVersion & Version )
friend

Member Data Documentation

◆ FileVersionUE4

int32 FPackageFileVersion::FileVersionUE4 = 0

Definition at line 830 of file ObjectVersion.h.

◆ FileVersionUE5

int32 FPackageFileVersion::FileVersionUE5 = 0

Definition at line 832 of file ObjectVersion.h.


The documentation for this struct was generated from the following file: