DIFF

class ContentDLC

ContentDLC is for query installed DLC (only as entitlement keys, not content)

Constructors 2

private void ContentDLC()
private void ~ContentDLC()

Methods 11

proto void Subscribe(func fnc)

Subscribe to changes: void() OR void(EDLCId) OR void(EDLCId,EDLCChange)

static proto native bool IsValidDLCID(EDLCId dlcId)

Check if a DLC ID is valid

proto native int GetEntitlements(out TIntArray dlcIdList)

For getting current entitlements on device (console). Could be called after any entitlement change or before accessing locked content.

dlcIdList
through this list is returned all installed DLC with valid license for current user

Returns: count of installed and valid DLCs.

proto bool IsDLCInstalled(EDLCId dlcId)
dlcId
ID of DLC

Returns: current state of availability of dlc. Only DLC with valid license which has been installed returns true.

proto bool IsDLCMounted(EDLCId dlcId)
dlcId
ID of DLC

Returns: state of mount of DLC on console/device for current user (a DLC must be in the mounted state to use it)

proto bool UseDLC(EDLCId dlcId)
dlcId
ID of DLC

Returns: attempt to use a DLC, DLC needs to be installed and mounted, tries to mount if possible

proto bool BuyDLC(EDLCId dlcId)

Opens the platform store page for the DLC. The player is expected to be informed about the missing DLC before this is called.

dlcId
ID of DLC

Returns: true when the store page was opened

proto EDLCId GetDLCFromWorld(string world)
world
World name

Returns: ID of DLC which this world belongs to, otherwise EDLCId.DLC_UNKNOWN

proto string GetLocalizedName(EDLCId dlcId)
dlcId
ID of DLC

Returns: localized name of the DLC, placeholder text for an unknown DLC