Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
ContentDLC Class Reference

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

Private Member Functions

proto native int GetEntitlements (out TIntArray dlcIdList)
 For getting current entitlements on device (console).
proto native bool IsDLCInstalled (EDLCId dlcId)
void OnChange (EDLCId dlcId)
 Called from engine for notifing script after any change in additional content (installed, lost license).
bool OwnsAllDLC ()

Private Attributes

ref ScriptInvoker m_OnChange = new ScriptInvoker()
 void(EDLCId dlcId)

Detailed Description

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

Definition at line 10 of file contentdlc.c.

Member Function Documentation

◆ GetEntitlements()

proto native int GetEntitlements ( out TIntArray dlcIdList)
private

For getting current entitlements on device (console).

Could be called after any entitlement change or before accessing locked content.

Parameters
dlcIdListthrough this list is returned all installed DLC with valid license for current user
Returns
count of installed and valid DLCs.

◆ IsDLCInstalled()

proto native bool IsDLCInstalled ( EDLCId dlcId)
private
Parameters
dlcIdID of DLC
Returns
current state of availability of unlocking' dlc. Only DLC with valid license return true.

Referenced by OwnsAllDLC().

◆ OnChange()

void OnChange ( EDLCId dlcId)
inlineprivate

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)

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

Definition at line 49 of file contentdlc.c.

References m_OnChange.

◆ OwnsAllDLC()

bool OwnsAllDLC ( )
inlineprivate

Field Documentation

◆ m_OnChange

ref ScriptInvoker m_OnChange = new ScriptInvoker()
private

void(EDLCId dlcId)

Definition at line 13 of file contentdlc.c.

Referenced by OnChange().


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