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_TaskExecutorGroup.c
Go to the documentation of this file.
1
class
SCR_TaskExecutorGroup
:
SCR_TaskExecutor
2
{
3
[
Attribute
()]
4
protected
int
m_iGroupID
;
5
6
//------------------------------------------------------------------------------------------------
7
override
bool
IsClonedBy
(
SCR_TaskExecutor
executor)
8
{
9
if
(!super.IsClonedBy(executor))
10
return
false
;
11
12
SCR_TaskExecutorGroup
executorGroup =
SCR_TaskExecutorGroup
.Cast(executor);
13
if
(!executorGroup)
14
return
false
;
15
16
if
(
m_iGroupID
!= executorGroup.
GetGroupID
())
17
return
false
;
18
19
return
true
;
20
}
21
22
//------------------------------------------------------------------------------------------------
23
override
FactionKey
GetFactionKey
()
24
{
25
SCR_GroupsManagerComponent
groupsManagerComponent =
SCR_GroupsManagerComponent
.GetInstance();
26
if
(!groupsManagerComponent)
27
return
FactionKey
.Empty;
28
29
SCR_AIGroup
group = groupsManagerComponent.FindGroup(
m_iGroupID
);
30
if
(!group)
31
return
FactionKey
.Empty;
32
33
return
group.
GetFactionName
();
34
}
35
36
//------------------------------------------------------------------------------------------------
37
override
int
GetGroupID
()
38
{
39
return
m_iGroupID
;
40
}
41
42
//------------------------------------------------------------------------------------------------
43
void
SetGroupID
(
int
groupID)
44
{
45
m_iGroupID
= groupID;
46
}
47
48
//------------------------------------------------------------------------------------------------
49
static
bool
Extract
(
SCR_TaskExecutorGroup
instance,
ScriptCtx
ctx,
SSnapSerializerBase
snapshot)
50
{
51
snapshot.SerializeInt(instance.
m_iGroupID
);
52
return
true
;
53
}
54
55
//------------------------------------------------------------------------------------------------
56
static
bool
Inject
(
SSnapSerializerBase
snapshot,
ScriptCtx
ctx,
SCR_TaskExecutorGroup
instance)
57
{
58
snapshot.SerializeInt(instance.
m_iGroupID
);
59
return
true
;
60
}
61
62
//------------------------------------------------------------------------------------------------
63
static
void
Encode
(
SSnapSerializerBase
snapshot,
ScriptCtx
ctx, ScriptBitSerializer packet)
64
{
65
snapshot.EncodeInt(packet);
66
}
67
68
//------------------------------------------------------------------------------------------------
69
static
bool
Decode
(ScriptBitSerializer packet,
ScriptCtx
ctx,
SSnapSerializerBase
snapshot)
70
{
71
snapshot.DecodeInt(packet);
72
return
true
;
73
}
74
75
//------------------------------------------------------------------------------------------------
76
static
bool
SnapCompare
(
SSnapSerializerBase
lhs,
SSnapSerializerBase
rhs ,
ScriptCtx
ctx)
77
{
78
return
lhs.CompareSnapshots(rhs, 4);
79
}
80
81
//------------------------------------------------------------------------------------------------
82
static
bool
PropCompare
(
SCR_TaskExecutorGroup
instance,
SSnapSerializerBase
snapshot,
ScriptCtx
ctx)
83
{
84
return
snapshot.CompareInt(instance.
m_iGroupID
);
85
}
86
}
SCR_GroupsManagerComponent
void SCR_GroupsManagerComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition
SCR_GroupsManagerComponent.c:1747
FactionKey
Definition
FactionKey.c:3
SCR_AIGroup
Definition
SCR_AIGroup.c:75
SCR_AIGroup::GetFactionName
string GetFactionName()
Definition
SCR_AIGroup.c:2146
SCR_TaskExecutorGroup
Definition
SCR_TaskExecutorGroup.c:2
SCR_TaskExecutorGroup::IsClonedBy
override bool IsClonedBy(SCR_TaskExecutor executor)
Definition
SCR_TaskExecutorGroup.c:7
SCR_TaskExecutorGroup::PropCompare
static bool PropCompare(SCR_TaskExecutorGroup instance, SSnapSerializerBase snapshot, ScriptCtx ctx)
Definition
SCR_TaskExecutorGroup.c:82
SCR_TaskExecutorGroup::Encode
static void Encode(SSnapSerializerBase snapshot, ScriptCtx ctx, ScriptBitSerializer packet)
Definition
SCR_TaskExecutorGroup.c:63
SCR_TaskExecutorGroup::Decode
static bool Decode(ScriptBitSerializer packet, ScriptCtx ctx, SSnapSerializerBase snapshot)
Definition
SCR_TaskExecutorGroup.c:69
SCR_TaskExecutorGroup::Extract
static bool Extract(SCR_TaskExecutorGroup instance, ScriptCtx ctx, SSnapSerializerBase snapshot)
Definition
SCR_TaskExecutorGroup.c:49
SCR_TaskExecutorGroup::SnapCompare
static bool SnapCompare(SSnapSerializerBase lhs, SSnapSerializerBase rhs, ScriptCtx ctx)
Definition
SCR_TaskExecutorGroup.c:76
SCR_TaskExecutorGroup::Inject
static bool Inject(SSnapSerializerBase snapshot, ScriptCtx ctx, SCR_TaskExecutorGroup instance)
Definition
SCR_TaskExecutorGroup.c:56
SCR_TaskExecutorGroup::GetFactionKey
override FactionKey GetFactionKey()
Definition
SCR_TaskExecutorGroup.c:23
SCR_TaskExecutorGroup::m_iGroupID
int m_iGroupID
Definition
SCR_TaskExecutorGroup.c:4
SCR_TaskExecutorGroup::SetGroupID
void SetGroupID(int groupID)
Definition
SCR_TaskExecutorGroup.c:43
SCR_TaskExecutorGroup::GetGroupID
override int GetGroupID()
Definition
SCR_TaskExecutorGroup.c:37
SCR_TaskExecutor
Definition
SCR_TaskExecutor.c:2
SSnapSerializerBase
Definition
EnNetwork.c:269
ScriptCtx
Definition
EnNetwork.c:36
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Tasks
Executors
SCR_TaskExecutorGroup.c
Generated by
1.17.0