DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
ContentDLC.c
Go to the documentation of this file.
1
2// Binded values from engine
4{
7};
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
Definition ContentDLC.c:4
@ DLC_UNKNOWN
Definition ContentDLC.c:5
@ DLC_BLISS
Definition ContentDLC.c:6
ContentDLC is for query installed DLC (only as entitlement keys, not content)
Definition ContentDLC.c:11
proto native bool IsDLCInstalled(EDLCId dlcId)
ref ScriptInvoker m_OnChange
void(EDLCId dlcId)
Definition ContentDLC.c:13
bool OwnsAllDLC()
Definition ContentDLC.c:29
void OnChange(EDLCId dlcId)
Definition ContentDLC.c:49
proto native int GetEntitlements(out TIntArray dlcIdList)
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
ScriptInvoker Class provide list of callbacks usage:
Definition tools.c:116
proto void Invoke(void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
invoke call on all inserted methods with given arguments