Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
contentdlc.c
Go to the documentation of this file.
1
2
// Binded values from engine
3
enum
EDLCId
4
{
5
DLC_UNKNOWN
,
6
DLC_FROSTLINE
,
7
};
8
10
class
ContentDLC
11
{
13
ref
ScriptInvoker
m_OnChange
=
new
ScriptInvoker
();
14
21
proto native
int
GetEntitlements
(out
TIntArray
dlcIdList);
22
27
proto native
bool
IsDLCInstalled
(
EDLCId
dlcId);
28
29
bool
OwnsAllDLC
()
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
{
36
if
(!
IsDLCInstalled
(
EnumTools
.
GetEnumValue
(
EDLCId
, i)))
37
return
false
;
38
}
39
40
return
true
;
41
}
42
49
void
OnChange
(
EDLCId
dlcId)
50
{
51
m_OnChange
.Invoke(dlcId);
52
}
53
};
ContentDLC
ContentDLC is for query installed DLC (only as entitlement keys, not content).
Definition
contentdlc.c:11
ContentDLC::IsDLCInstalled
proto native bool IsDLCInstalled(EDLCId dlcId)
ContentDLC::m_OnChange
ref ScriptInvoker m_OnChange
void(EDLCId dlcId)
Definition
contentdlc.c:13
ContentDLC::OwnsAllDLC
bool OwnsAllDLC()
Definition
contentdlc.c:29
ContentDLC::OnChange
void OnChange(EDLCId dlcId)
Called from engine for notifing script after any change in additional content (installed,...
Definition
contentdlc.c:49
ContentDLC::GetEntitlements
proto native int GetEntitlements(out TIntArray dlcIdList)
For getting current entitlements on device (console).
EnumTools
Definition
enconvert.c:603
EnumTools::GetEnumValue
static int GetEnumValue(typename e, int idx)
Return the nth value in the enum.
Definition
enconvert.c:647
EnumTools::GetEnumSize
static int GetEnumSize(typename e)
Return amount of values in enum.
Definition
enconvert.c:636
ScriptInvoker
ScriptInvoker Class provide list of callbacks usage:
Definition
tools.c:116
EDLCId
EDLCId
Definition
contentdlc.c:4
DLC_FROSTLINE
@ DLC_FROSTLINE
Definition
contentdlc.c:6
DLC_UNKNOWN
@ DLC_UNKNOWN
Definition
contentdlc.c:5
TIntArray
array< int > TIntArray
Definition
enscript.c:714
Games
Dayz
scripts
3_game
services
contentdlc.c
Generated by
1.17.0