Enfusion Script API
Loading...
Searching...
No Matches
MissionWorkshopItem Interface Reference
Inheritance diagram for MissionWorkshopItem:
BaseWorkshopItem Managed

Public Member Functions

void ~MissionWorkshopItem ()
 
proto external ResourceName Id ()
 Returns Id of mission header.
 
proto external Class GetHeader ()
 Returns pointer to Header of this mission.
 
proto external string GetOwnerId ()
 Returns ID of WorkshopItem that owns this mission.
 
proto external WorkshopItem GetOwner ()
 Returns WorkshopItem that owns this mission.
 
proto external BackendImage Thumbnail ()
 Returns thumbnail image for this mission.
 
proto external string Author ()
 Returns author name of this mission.
 
proto external void Play ()
 Requests reload of game with addons and launch mission.
 
proto external void Host (DSConfig config)
 Requests reload of game with addons and launch server with this mission.
 
proto external int GetTimeSinceLastPlay ()
 Returns time since last time this mission was played. Returns -1 if never played.
 
proto external bool IsFavorite ()
 Returns true if mission is set as favorite of current user.
 
proto external void SetFavorite (bool isFavorite)
 Set favorite state on mission for current user.
 
proto external int GetPlayerCount ()
 Returns player count defined for this mission.
 
- Public Member Functions inherited from BaseWorkshopItem
void ~BaseWorkshopItem ()
 
proto external string Name ()
 Get name of the item.
 
proto external string Description ()
 Get description of the item.
 
- Public Member Functions inherited from Managed
proto external ref Managed Clone ()
 Return shallow copy of object, or null if it is not allowed (not public constructor)
 

Constructor & Destructor Documentation

◆ ~MissionWorkshopItem()

void MissionWorkshopItem.~MissionWorkshopItem ( )

Member Function Documentation

◆ Author()

proto external string MissionWorkshopItem.Author ( )

Returns author name of this mission.

◆ GetHeader()

proto external Class MissionWorkshopItem.GetHeader ( )

Returns pointer to Header of this mission.

◆ GetOwner()

proto external WorkshopItem MissionWorkshopItem.GetOwner ( )

Returns WorkshopItem that owns this mission.

◆ GetOwnerId()

proto external string MissionWorkshopItem.GetOwnerId ( )

Returns ID of WorkshopItem that owns this mission.

◆ GetPlayerCount()

proto external int MissionWorkshopItem.GetPlayerCount ( )

Returns player count defined for this mission.

◆ GetTimeSinceLastPlay()

proto external int MissionWorkshopItem.GetTimeSinceLastPlay ( )

Returns time since last time this mission was played. Returns -1 if never played.

◆ Host()

proto external void MissionWorkshopItem.Host ( DSConfig config)

Requests reload of game with addons and launch server with this mission.

◆ Id()

proto external ResourceName MissionWorkshopItem.Id ( )

Returns Id of mission header.

◆ IsFavorite()

proto external bool MissionWorkshopItem.IsFavorite ( )

Returns true if mission is set as favorite of current user.

◆ Play()

proto external void MissionWorkshopItem.Play ( )

Requests reload of game with addons and launch mission.

◆ SetFavorite()

proto external void MissionWorkshopItem.SetFavorite ( bool isFavorite)

Set favorite state on mission for current user.

◆ Thumbnail()

proto external BackendImage MissionWorkshopItem.Thumbnail ( )

Returns thumbnail image for this mission.


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