Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ScenarioFrameworkSlotPick.c
Go to the documentation of this file.
1 [EntityEditorProps(category: "GameScripted/ScenarioFramework/Slot", description: "")]
3 {
4 }
5 
6 class SCR_ScenarioFrameworkSlotPick : SCR_ScenarioFrameworkSlotTask
7 {
8  //TODO: make title and description as Tuple2
9  [Attribute(desc: "Name of the task in list of tasks (item picked up )", category: "Task")]
10  protected string m_sTaskTitleUpdated1;
11 
12  [Attribute(desc: "Description of the task (item picked up)", category: "Task",)] //TODO: make config, memory
13  protected string m_sTaskDescriptionUpdated1;
14 
15  [Attribute(desc: "Name of the task in list of tasks (item dropped)", category: "Task")]
16  protected string m_sTaskTitleUpdated2;
17 
18  [Attribute(desc: "Description of the task (item dropped)", category: "Task",)]
19  protected string m_sTaskDescriptionUpdated2;
20 
21  //------------------------------------------------------------------------------------------------
22  override string GetTaskTitle(int iState = 0)
23  {
24  if (iState == 0)
25  return super.GetTaskTitle();
26  else if (iState == 1)
27  return m_sTaskTitleUpdated1;
28  else if (iState == 2)
29  return m_sTaskTitleUpdated2;
30  else if (iState == 4)
31  return super.GetTaskTitle();
32  else if (iState == 5)
33  return m_sTaskTitleUpdated1;
34  else if (iState == 6)
35  return m_sTaskTitleUpdated2;
36 
37  return string.Empty;
38  }
39 
40  //------------------------------------------------------------------------------------------------
42  {
44  return;
45 
47  }
48 
49  //------------------------------------------------------------------------------------------------
50  override string GetTaskDescription(int iState = 0)
51  {
52  if (iState == 0)
53  return super.GetTaskDescription();
54  else if (iState == 1)
55  return m_sTaskDescriptionUpdated1;
56  else if (iState == 2)
57  return m_sTaskDescriptionUpdated2;
58  else if (iState == 4)
59  return super.GetTaskDescription();
60  else if (iState == 5)
61  return m_sTaskDescriptionUpdated1;
62  else if (iState == 6)
63  return m_sTaskDescriptionUpdated2;
64 
65  return string.Empty;
66  }
67 
68  //------------------------------------------------------------------------------------------------
69  override void Init(SCR_ScenarioFrameworkArea area = null, SCR_ScenarioFrameworkEActivationType activation = SCR_ScenarioFrameworkEActivationType.SAME_AS_PARENT)
70  {
71  if (m_bInitiated)
72  {
74 
75  if (m_ParentLayer)
76  m_ParentLayer.CheckAllChildrenSpawned(this);
77 
80  return;
81  }
82 
83  if (!m_bDynamicallyDespawned && activation != m_eActivationType)
84  return;
85 
87  {
88  //If just one condition is false, we don't continue and interrupt the init
89  if (!activationCondition.Init(GetOwner()))
90  {
92  return;
93  }
94  }
95 
96  super.Init(area, activation);
97  }
98 
99  //------------------------------------------------------------------------------------------------
101  {
102  super.AfterAllChildrenSpawned(this);
103 
104  if (!m_Entity || m_bCanBeGarbageCollected)
105  return;
106 
107  auto garbageSystem = SCR_GarbageSystem.GetByEntityWorld(m_Entity);
108  if (garbageSystem)
109  garbageSystem.UpdateBlacklist(m_Entity, true);
110  }
111 }
SCR_ScenarioFrameworkActivationConditionBase
Definition: SCR_ScenarioFrameworkSlotBase.c:677
m_eActivationType
protected SCR_ScenarioFrameworkEActivationType m_eActivationType
Definition: SCR_ScenarioFrameworkLayerBase.c:43
GetTaskDescription
override string GetTaskDescription(int iState=0)
Definition: SCR_ScenarioFrameworkSlotPick.c:50
m_bInitiated
protected bool m_bInitiated
Definition: SCR_ScenarioFrameworkLayerBase.c:72
Attribute
SCR_ScenarioFrameworkSlotPickClass SCR_ScenarioFrameworkSlotTaskClass Attribute(desc:"Name of the task in list of tasks (item picked up )", category:"Task")
Definition: SCR_ScenarioFrameworkSlotPick.c:9
EntityEditorProps
enum EQueryType EntityEditorProps(category:"GameScripted/Sound", description:"THIS IS THE SCRIPT DESCRIPTION.", color:"0 0 255 255")
Definition: SCR_AmbientSoundsComponent.c:12
GetOnAllChildrenSpawned
ScriptInvokerScenarioFrameworkLayer GetOnAllChildrenSpawned()
Definition: SCR_ScenarioFrameworkLayerBase.c:450
GetTaskTitle
string GetTaskTitle()
Definition: SCR_ScenarioFrameworkLayerTask.c:95
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
m_Entity
enum EAITargetInfoCategory m_Entity
AfterAllChildrenSpawned
override void AfterAllChildrenSpawned(SCR_ScenarioFrameworkLayerBase layer)
Definition: SCR_ScenarioFrameworkSlotPick.c:100
InvokeAllChildrenSpawned
void InvokeAllChildrenSpawned()
Definition: SCR_ScenarioFrameworkLayerBase.c:460
m_bExcludeFromDynamicDespawn
protected bool m_bExcludeFromDynamicDespawn
Definition: SCR_ScenarioFrameworkLayerBase.c:52
m_bDynamicallyDespawned
protected bool m_bDynamicallyDespawned
Definition: SCR_ScenarioFrameworkLayerBase.c:74
SCR_ScenarioFrameworkArea
Definition: SCR_ScenarioFrameworkArea.c:24
Init
override void Init(SCR_ScenarioFrameworkArea area=null, SCR_ScenarioFrameworkEActivationType activation=SCR_ScenarioFrameworkEActivationType.SAME_AS_PARENT)
Definition: SCR_ScenarioFrameworkSlotPick.c:69
GetOwner
IEntity GetOwner()
Owner entity of the fuel tank.
Definition: SCR_FuelNode.c:128
DynamicDespawn
override void DynamicDespawn(SCR_ScenarioFrameworkLayerBase layer)
Definition: SCR_ScenarioFrameworkSlotPick.c:41
SCR_ScenarioFrameworkSlotPickClass
Definition: SCR_ScenarioFrameworkSlotPick.c:2
SCR_GarbageSystem
Script entry for garbage system modding.
Definition: SCR_GarbageSystem.c:2
m_ParentLayer
protected SCR_ScenarioFrameworkLayerBase m_ParentLayer
Definition: SCR_ScenarioFrameworkLayerBase.c:65
SCR_ScenarioFrameworkLayerBase
void SCR_ScenarioFrameworkLayerBase(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition: SCR_ScenarioFrameworkLayerBase.c:875
StoreTaskSubjectToParentTaskLayer
override void StoreTaskSubjectToParentTaskLayer()
Definition: SCR_ScenarioFrameworkSlotDelivery.c:17
SCR_ScenarioFrameworkSlotTaskClass
Definition: SCR_ScenarioFrameworkSlotTask.c:2
m_aActivationConditions
protected ref array< ref SCR_ScenarioFrameworkActivationConditionBase > m_aActivationConditions
Definition: SCR_ScenarioFrameworkLayerBase.c:46
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180