Enfusion Script API
|
Dependency represent minimal structure of workshop item that other things depends on. More...
Public Member Functions | |
void | ~Dependency () |
proto external string | GetID () |
Returns ID of this item. | |
proto external string | GetName () |
Returns Name of this item. | |
proto external float | TotalFileSize () |
Returns total size of files in Bytes. | |
proto external string | GetVersion () |
Returns Version from Revision of this item. | |
proto external Revision | GetRevision () |
Returns Revision of this item. | |
proto external bool | IsOffline () |
Returns true if it is already locally downloaded. | |
proto external void | LoadItem (BackendCallback callback) |
Will request to load WorkshopItem of this item from backend into cache. | |
proto external WorkshopItem | GetCachedItem () |
Returns cached WorkshopItem of this item or null if it was not yet cached. | |
proto external void | Download (BackendCallback callback) |
Will request to download of this item. | |
![]() | |
proto external ref Managed | Clone () |
Return shallow copy of object, or null if it is not allowed (not public constructor) | |
Dependency represent minimal structure of workshop item that other things depends on.
It is provided with specific Revision which cannot be changed. With Revision you can access dependencies of this dependency.
You can request load of entire WorkshopItem that is full representation of this item.
It provided by:
void Dependency.~Dependency | ( | ) |
proto external void Dependency.Download | ( | BackendCallback | callback | ) |
Will request to download of this item.
callback | - Is script callback where you will receive result/error when request finishes |
proto external WorkshopItem Dependency.GetCachedItem | ( | ) |
Returns cached WorkshopItem of this item or null if it was not yet cached.
Item can be cached by calling LoadItem(BackendCallback callback).
proto external string Dependency.GetID | ( | ) |
Returns ID of this item.
proto external string Dependency.GetName | ( | ) |
Returns Name of this item.
proto external bool Dependency.IsOffline | ( | ) |
proto external void Dependency.LoadItem | ( | BackendCallback | callback | ) |
Will request to load WorkshopItem of this item from backend into cache.
callback | Is script callback where you will receive result/error when request finishes |
proto external float Dependency.TotalFileSize | ( | ) |
Returns total size of files in Bytes.