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_ServicePointDelegateComponent.c
Go to the documentation of this file.
1
class
SCR_ServicePointDelegateComponentClass
:
ScriptComponentClass
2
{
3
}
4
5
// Holds UI-related info for service points so they can handle the data even after the service itself got streamed out
6
class
SCR_ServicePointDelegateComponent :
ScriptComponent
7
{
8
[
Attribute
(
SCR_EServicePointType
.SUPPLY_DEPOT.ToString(), uiwidget:
UIWidgets
.ComboBox, enums: ParamEnumArray.FromEnum(
SCR_EServicePointType
))]
9
protected
SCR_EServicePointType
m_eType
;
10
11
[
Attribute
(defvalue:
"0"
, uiwidget:
UIWidgets
.SearchComboBox,
desc
:
"Type"
, enums: ParamEnumArray.FromEnum(
EEditableEntityLabel
))]
12
protected
EEditableEntityLabel
m_eBuildingLabel
;
13
14
protected
SCR_MilitaryBaseComponent
m_ParentBase
;
15
16
[
RplProp
(onRplName:
"OnParentBaseIdSet"
)]
17
protected
int
m_iParentBaseId
;
18
19
//------------------------------------------------------------------------------------------------
21
SCR_EServicePointType
GetType
()
22
{
23
return
m_eType
;
24
}
25
26
//------------------------------------------------------------------------------------------------
28
EEditableEntityLabel
GetLabel
()
29
{
30
return
m_eBuildingLabel
;
31
}
32
33
//------------------------------------------------------------------------------------------------
35
void
SetParentBaseId
(
RplId
id
)
36
{
37
m_iParentBaseId
=
id
;
38
Replication
.BumpMe();
39
OnParentBaseIdSet
();
40
}
41
42
//------------------------------------------------------------------------------------------------
43
void
OnParentBaseIdSet
()
44
{
45
m_ParentBase
= SCR_MilitaryBaseComponent.Cast(
Replication
.FindItem(
m_iParentBaseId
));
46
47
if
(!
m_ParentBase
)
48
return
;
49
50
m_ParentBase
.RegisterServiceDelegate(
this
);
51
52
if
(
RplSession
.Mode() ==
RplMode
.Dedicated)
53
return
;
54
55
SCR_ServicePointMapDescriptorComponent
mapDescr =
SCR_ServicePointMapDescriptorComponent
.Cast(
GetOwner
().
FindComponent
(
SCR_ServicePointMapDescriptorComponent
));
56
57
if
(!mapDescr)
58
return
;
59
60
mapDescr.SetParentBase(
m_ParentBase
);
61
}
62
63
//------------------------------------------------------------------------------------------------
64
override
void
OnDelete
(
IEntity
owner)
65
{
66
super.OnDelete(owner);
67
68
if
(
m_ParentBase
)
69
m_ParentBase
.UnregisterServiceDelegate(
this
);
70
}
71
}
id
AddonBuildInfoTool id
EEditableEntityLabel
EEditableEntityLabel
Definition
EEditableEntityLabel.c:2
RplMode
RplMode
Mode of replication.
Definition
RplMode.c:9
RplProp
SCR_CacheNoteComponentClass ScriptComponentClass RplProp()] protected ref array< string > m_aLines
GetType
override EGadgetType GetType()
Definition
SCR_CampaignBuildingGadgetToolComponent.c:60
m_eType
SCR_ECampaignBaseType m_eType
Definition
SCR_CampaignMilitaryBaseComponent.c:22
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
m_eBuildingLabel
EEditableEntityLabel m_eBuildingLabel
Definition
SCR_ServicePointComponent.c:11
GetLabel
EEditableEntityLabel GetLabel()
Definition
SCR_ServicePointComponent.c:87
SCR_EServicePointType
SCR_EServicePointType
Definition
SCR_ServicePointComponent.c:215
m_iParentBaseId
int m_iParentBaseId
Definition
SCR_ServicePointDelegateComponent.c:17
SetParentBaseId
void SetParentBaseId(RplId id)
Definition
SCR_ServicePointDelegateComponent.c:35
m_ParentBase
SCR_MilitaryBaseComponent m_ParentBase
Definition
SCR_ServicePointDelegateComponent.c:14
OnParentBaseIdSet
void OnParentBaseIdSet()
Definition
SCR_ServicePointDelegateComponent.c:43
SCR_ServicePointMapDescriptorComponent
void SCR_ServicePointMapDescriptorComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition
SCR_ServicePointMapDescriptorComponent.c:198
GenericComponent::FindComponent
proto external GenericComponent FindComponent(typename typeName)
IEntity
Definition
IEntity.c:13
Replication
Main replication API.
Definition
Replication.c:14
RplId
Replication item identifier.
Definition
RplId.c:14
RplSession
Definition
RplSession.c:8
SCR_ServicePointDelegateComponentClass
Definition
SCR_ServicePointDelegateComponent.c:2
ScriptComponentClass
Definition
ScriptComponentClass.c:8
ScriptComponent
Definition
ScriptComponent.c:24
ScriptComponent::GetOwner
proto external GenericEntity GetOwner()
Get owner entity.
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
OnDelete
@ OnDelete
Definition
SndComponentCallbacks.c:16
scripts
Game
GameMode
Components
SCR_ServicePointDelegateComponent.c
Generated by
1.17.0