![]() |
Ark Server API (ASA) - Wiki
|
#include <EngineVersionBase.h>
Inheritance diagram for FEngineVersionBase:Public Member Functions | |
| FEngineVersionBase ()=default | |
| FEngineVersionBase (uint16 InMajor, uint16 InMinor, uint16 InPatch=0, uint32 InChangelist=0) | |
| uint32 | GetChangelist () const |
| FORCEINLINE uint16 | GetMajor () const |
| FORCEINLINE uint16 | GetMinor () const |
| FORCEINLINE uint16 | GetPatch () const |
| bool | IsLicenseeVersion () const |
| bool | IsEmpty () const |
| bool | HasChangelist () const |
Static Public Member Functions | |
| static EVersionComparison | GetNewest (const FEngineVersionBase &First, const FEngineVersionBase &Second, EVersionComponent *OutComponent) |
| static uint32 | EncodeLicenseeChangelist (uint32 Changelist) |
Protected Attributes | |
| uint16 | Major = 0 |
| uint16 | Minor = 0 |
| uint16 | Patch = 0 |
| uint32 | Changelist = 0 |
Base class for the EngineVersion class. Holds basic version numbers.
Definition at line 28 of file EngineVersionBase.h.
|
default |
Empty constructor. Initializes the version to 0.0.0-0.
| FEngineVersionBase::FEngineVersionBase | ( | uint16 | InMajor, |
| uint16 | InMinor, | ||
| uint16 | InPatch = 0, | ||
| uint32 | InChangelist = 0 ) |
Constructs a version from the given components.
Encodes a licensee changelist number (by setting the top bit)
| uint32 FEngineVersionBase::GetChangelist | ( | ) | const |
Returns the changelist number corresponding to this version.
|
inline |
Returns the Major version number corresponding to this version.
Definition at line 42 of file EngineVersionBase.h.
|
inline |
Returns the Minor version number corresponding to this version.
Definition at line 48 of file EngineVersionBase.h.
|
static |
Returns the newest of two versions, and the component at which they differ
|
inline |
Returns the Patch version number corresponding to this version.
Definition at line 54 of file EngineVersionBase.h.
| bool FEngineVersionBase::HasChangelist | ( | ) | const |
Returns whether the engine version has a changelist component.
| bool FEngineVersionBase::IsEmpty | ( | ) | const |
Returns whether the current version is empty.
| bool FEngineVersionBase::IsLicenseeVersion | ( | ) | const |
Checks if the changelist number represents licensee changelist number.
|
protected |
Changelist number. This is used to arbitrate when Major/Minor/Patch version numbers match. Use GetChangelist() instead of using this member directly.
Definition at line 86 of file EngineVersionBase.h.
|
protected |
Major version number.
Definition at line 77 of file EngineVersionBase.h.
|
protected |
Minor version number.
Definition at line 80 of file EngineVersionBase.h.
|
protected |
Patch version number.
Definition at line 83 of file EngineVersionBase.h.