DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
ContentDLC.c
См. документацию.
1
2// Binded values from engine
8
11{
14
21 proto native int GetEntitlements(out TIntArray dlcIdList);
22
27 proto native bool IsDLCInstalled(EDLCId dlcId);
28
30 {
31 const int length = EnumTools.GetEnumSize(EDLCId);
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 }
42
49 void OnChange(EDLCId dlcId)
50 {
51 m_OnChange.Invoke(dlcId);
52 }
53};
EDLCId
Определения ContentDLC.c:4
@ DLC_FROSTLINE
Определения ContentDLC.c:6
@ DLC_UNKNOWN
Определения ContentDLC.c:5
void OnChange(EDLCId dlcId)
Определения ContentDLC.c:49
bool OwnsAllDLC()
Определения ContentDLC.c:29
ref ScriptInvoker m_OnChange
void(EDLCId dlcId)
Определения ContentDLC.c:13
proto native int GetEntitlements(out TIntArray dlcIdList)
proto native bool IsDLCInstalled(EDLCId dlcId)
ContentDLC is for query installed DLC (only as entitlement keys, not content)
Определения ContentDLC.c:11
static int GetEnumSize(typename e)
Return amount of values in enum.
Определения EnConvert.c:623
static int GetEnumValue(typename e, int idx)
Return the nth value in the enum.
Определения EnConvert.c:634
Определения EnConvert.c:590
ScriptInvoker Class provide list of callbacks usage:
Определения tools.c:116
array< int > TIntArray
Определения EnScript.c:687