DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс ContentDLC

ContentDLC is for query installed DLC (only as entitlement keys, not content) Подробнее...

Закрытые члены

proto native int GetEntitlements (out TIntArray dlcIdList)
 
proto native bool IsDLCInstalled (EDLCId dlcId)
 
bool OwnsAllDLC ()
 
void OnChange (EDLCId dlcId)
 

Закрытые данные

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

Подробное описание

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

Методы

◆ 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.

Аргументы
dlcIdListthrough this list is returned all installed DLC with valid license for current user
Возвращает
count of installed and valid DLCs.

◆ IsDLCInstalled()

proto native bool IsDLCInstalled ( EDLCId dlcId)
private
Аргументы
dlcIdID of DLC
Возвращает
current state of availability of unlocking' dlc. Only DLC with valid license return true.

Используется в 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)

Аргументы
dlcIdID of DLC that was changed. Could be empty string if console does not report concrete DLC ID.
50 {
51 m_OnChange.Invoke(dlcId);
52 }
ref ScriptInvoker m_OnChange
void(EDLCId dlcId)
Definition ContentDLC.c:13
Definition EntityAI.c:95

Перекрестные ссылки m_OnChange.

◆ OwnsAllDLC()

bool OwnsAllDLC ( )
inlineprivate
30 {
32
33 // Start at 1, because 0 is DLC_UNKNOWN
34 for (int i = 1; i < length; ++i)
35 {
37 return false;
38 }
39
40 return true;
41 }
EDLCId
Definition ContentDLC.c:4
proto native bool IsDLCInstalled(EDLCId dlcId)
Definition EnConvert.c:590
static int GetEnumValue(typename e, int idx)
Return the nth value in the enum.
Definition EnConvert.c:634
static int GetEnumSize(typename e)
Return amount of values in enum.
Definition EnConvert.c:623

Перекрестные ссылки EnumTools::GetEnumSize(), EnumTools::GetEnumValue() и IsDLCInstalled().

Поля

◆ m_OnChange

ref ScriptInvoker m_OnChange = new ScriptInvoker()
private

void(EDLCId dlcId)

Используется в OnChange().


Объявления и описания членов класса находятся в файле: