Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_TaskData.c
Go to the documentation of this file.
1
class
SCR_TaskData
2
{
3
string
m_sID;
4
ref
SCR_TaskUIInfo
m_UIInfo;
5
vector
m_vPosition;
6
7
int
m_iAuthorId;
8
UUID
m_sAuthorIdentityId;
// persistent after leaving session
9
PlatformKind
m_ePlatformKind;
// persistent after leaving session
10
11
ref array<ref SCR_TaskExecutor> m_aAssignees;
12
ref array<string> m_aOwnerFactionKeys;
13
ref array<int> m_aOwnerGroupIDs;
14
ref array<ref SCR_TaskExecutor> m_aOwnerExecutors;
15
16
SCR_ETaskState
m_eState;
17
SCR_ETaskOwnership m_eOwnership;
18
SCR_ETaskVisibility
m_eVisibility;
19
SCR_ETaskUIVisibility m_eUIVisibility;
20
21
// Diag
22
bool
diag_isChecked =
false
;
23
ref array<bool> diag_checkedSettings =
24
{
25
false
,
// Ctx Menu: Name
26
false
,
// Ctx Menu: Description
27
false
,
// Ctx Menu: State
28
false
,
// Ctx Menu: Ownership
29
false
,
// Ctx Menu: Visibility
30
false
,
// Ctx Menu: UI Visibility
31
false
,
// Ctx Menu: Assignees
32
false
,
// Ctx Menu: Owner Executors
33
false
,
// Ctx Menu: Owner Factions
34
false
,
// Ctx Menu: Owner Groups
35
false
// Ctx Menu: Position
36
};
37
38
//------------------------------------------------------------------------------------------------
41
void
Copy
(out
SCR_TaskData
data
)
42
{
43
if
(!
data
)
44
data
=
new
SCR_TaskData
();
45
46
data
.m_sID = m_sID;
47
48
data
.m_UIInfo =
new
SCR_TaskUIInfo
();
49
data
.m_UIInfo.CopyFrom(m_UIInfo);
50
51
data
.m_vPosition = m_vPosition;
52
53
data
.m_iAuthorId = m_iAuthorId;
54
55
data
.m_sAuthorIdentityId = m_sAuthorIdentityId;
56
data
.m_ePlatformKind = m_ePlatformKind;
57
58
if
(m_aAssignees && !m_aAssignees.IsEmpty())
59
{
60
data
.m_aAssignees = {};
61
SCR_ArrayHelperRefT<ref SCR_TaskExecutor>.CopyReferencesFromTo(m_aAssignees,
data
.m_aAssignees);
62
}
63
64
if
(m_aOwnerFactionKeys && !m_aOwnerFactionKeys.IsEmpty())
65
{
66
data
.m_aOwnerFactionKeys = {};
67
data
.m_aOwnerFactionKeys.Copy(m_aOwnerFactionKeys);
68
}
69
70
if
(m_aOwnerGroupIDs && !m_aOwnerGroupIDs.IsEmpty())
71
{
72
data
.m_aOwnerGroupIDs = {};
73
data
.m_aOwnerGroupIDs.Copy(m_aOwnerGroupIDs);
74
}
75
76
if
(m_aOwnerExecutors && !m_aOwnerExecutors.IsEmpty())
77
{
78
data
.m_aOwnerExecutors = {};
79
SCR_ArrayHelperRefT<ref SCR_TaskExecutor>.CopyReferencesFromTo(m_aOwnerExecutors,
data
.m_aOwnerExecutors);
80
}
81
82
data
.m_eState = m_eState;
83
data
.m_eOwnership = m_eOwnership;
84
data
.m_eVisibility = m_eVisibility;
85
data
.m_eUIVisibility = m_eUIVisibility;
86
}
87
}
PlatformKind
PlatformKind
Definition
PlatformKind.c:8
data
Get all prefabs that have the spawner data
Definition
SCR_EntityCatalogManagerComponent.c:320
SCR_ETaskVisibility
SCR_ETaskVisibility
Definition
SCR_Task.c:24
SCR_ETaskState
SCR_ETaskState
Definition
SCR_Task.c:3
Copy
SCR_WorkshopAddonPresetAddonMeta Copy()
Definition
SCR_WorkshopAddonManagerStorage.c:66
SCR_TaskData
Definition
SCR_TaskData.c:2
SCR_TaskUIInfo
Definition
SCR_TaskUIInfo.c:3
UUID
Definition
UUID.c:28
vector
Definition
vector.c:13
scripts
Game
Tasks
SCR_TaskData.c
Generated by
1.17.0