Enfusion Script API
|
Public Member Functions | |
void | ~Revision () |
proto external bool | IsCorrupted () |
Returns true if any local files are corrupted or missing. DownloadableItem.VerifyIntegrity() needs to be called first. | |
proto external bool | IsDownloaded () |
Returns true if this specific revision is already downloaded. | |
proto external string | GetVersion () |
Returns version of asset as string. | |
proto external void | GetVersionArray (out notnull array< int > version) |
Returns version of asset as array. | |
proto external string | GetGameVersion () |
Returns game version on which asset was uploaded as string. | |
proto external void | GetGameVersionArray (out notnull array< int > version) |
Returns game version on which asset was uploaded as array. | |
proto external void | LoadDependencies (BackendCallback pCallback) |
Request list of all dependencies for this Revision. | |
proto external int | GetDependencies (out notnull array< Dependency > dependencies) |
Will insert all instances of Dependency for this revision into outputDependencies. | |
proto external void | LoadScenarios (BackendCallback pCallback) |
Request list of all scenarios for this Revision. | |
proto external int | GetScenarios (out notnull array< MissionWorkshopItem > scenarios) |
Will insert all instances of MissionWorkshopItem for this revision into scenarios. | |
proto external void | LoadChangelog (BackendCallback pCallback) |
Request changelog for this Revision. | |
proto external string | ChangeLog () |
Returns changelog of this Revision. | |
proto external float | GetTotalSize () |
Returns total size of this revision. | |
proto external float | GetSizeBytes () |
proto external void | ComputePatchSize (BackendCallback pCallback) |
Will request download of manifests for this Revision to compute patch sizes. | |
proto bool | GetPatchSize (out float size) |
Get size of update patch from currently downloaded revision to this revision in bytes. | |
proto external int | GetFiles (out notnull array< string > aFiles) |
Get array containing names of all files in this Revision. | |
proto external int | CompareTo (Revision rev) |
Compare this Revision to another one. | |
proto external int | GetLoadFlags () |
Describes which data are not loaded yet. | |
proto external ERevisionAvailability | GetAvailability () |
Returns availability status of this Revision as enum ERevisionAvailability(). | |
![]() | |
proto external ref Managed | Clone () |
Return shallow copy of object, or null if it is not allowed (not public constructor) | |
Static Public Member Functions | |
static proto bool | AreEqual (Revision a, Revision b) |
Returns true if both revisions are equal. | |
Static Public Attributes | |
static const int | INVALID_MAJOR_VERSION = -1 |
void Revision.~Revision | ( | ) |
Returns true if both revisions are equal.
proto external string Revision.ChangeLog | ( | ) |
Returns changelog of this Revision.
Changelog is available only if ELS_CHANGELOG data are loaded. See GetLoadFlags() for more.
proto external void Revision.ComputePatchSize | ( | BackendCallback | pCallback | ) |
Will request download of manifests for this Revision to compute patch sizes.
pCallback | - Is script callback where you will receive result/error when request finishes |
proto external ERevisionAvailability Revision.GetAvailability | ( | ) |
Returns availability status of this Revision as enum ERevisionAvailability().
proto external int Revision.GetDependencies | ( | out notnull array< Dependency > | dependencies | ) |
Will insert all instances of Dependency for this revision into outputDependencies.
Dependencies are available only if ELS_DEPENDENCIES data are loaded. See GetLoadFlags() for more.
[out] | dependencies | - output for array of dependencies |
Get array containing names of all files in this Revision.
proto external string Revision.GetGameVersion | ( | ) |
Returns game version on which asset was uploaded as string.
Returns game version on which asset was uploaded as array.
[out] | version | - output for array of 4 Integers which represents numbers between dots |
proto external int Revision.GetLoadFlags | ( | ) |
Describes which data are not loaded yet.
Get size of update patch from currently downloaded revision to this revision in bytes.
If no other Revision of same asset is downloaded then size will be total size of Revision. If this Revision is already downloaded then size will be 0.
[out] | size | - size of patch in bytes |
proto external int Revision.GetScenarios | ( | out notnull array< MissionWorkshopItem > | scenarios | ) |
Will insert all instances of MissionWorkshopItem for this revision into scenarios.
Scenarios are available only if ELS_SCENARIOS data are loaded. See GetLoadFlags() for more.
[out] | scenarios | - output for array of scenarios |
proto external float Revision.GetSizeBytes | ( | ) |
proto external float Revision.GetTotalSize | ( | ) |
Returns total size of this revision.
Size is available only if ELS_FILES data are loaded. See GetLoadFlags() for more.
proto external string Revision.GetVersion | ( | ) |
Returns version of asset as string.
Returns version of asset as array.
[out] | version | - output for array of 3 Integers which represents numbers between dots |
proto external bool Revision.IsCorrupted | ( | ) |
Returns true if any local files are corrupted or missing. DownloadableItem.VerifyIntegrity() needs to be called first.
proto external bool Revision.IsDownloaded | ( | ) |
Returns true if this specific revision is already downloaded.
proto external void Revision.LoadChangelog | ( | BackendCallback | pCallback | ) |
Request changelog for this Revision.
pCallback | - Is script callback where you will receive result/error when request finishes |
proto external void Revision.LoadDependencies | ( | BackendCallback | pCallback | ) |
Request list of all dependencies for this Revision.
pCallback | - Is script callback where you will receive result/error when request finishes |
proto external void Revision.LoadScenarios | ( | BackendCallback | pCallback | ) |
Request list of all scenarios for this Revision.
pCallback | - Is script callback where you will receive result/error when request finishes |
|
static |