DIFF

class ContentDLCSource

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

Members 1

ref ScriptInvoker m_OnChange = new ScriptInvoker()

void(EDLCId dlcId)

Referenced by OnChange()

Methods 4

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 native bool IsDLCInstalled(EDLCId dlcId)
dlcId
ID of DLC

Returns: current state of availability of unlocking' dlc. Only DLC with valid license return true.

Referenced by OwnsAllDLC()
void OnChange(EDLCId dlcId)

Called from engine for notifing script after any change in additional content (installed, lost license). There should be check for current state of entitlements. On Xbox should be problem with event lost license! (system bug)

dlcId
ID of DLC that was changed. Could be empty string if console does not report concrete DLC ID.