18 string m_sTaskIconName;
23 [
Attribute(
desc:
"StringID for the Intro Voiceline action to be processed. Processing must be setup after tasks are initialized.",
category:
"Task")]
24 string m_sTaskIntroVoiceline;
27 ref array<ref SCR_ScenarioFrameworkActivationConditionBase> m_aFinishConditions;
50 SCR_ScenarioFrameworkLayerTask m_TaskLayer;
51 bool m_bTaskResolvedBeforeLoad;
61 m_TaskLayer.OnTaskStateChanged(
task.GetTaskState(), newState);
71 else if (newState ==
SCR_ETaskState.COMPLETED && !m_bTaskResolvedBeforeLoad)
78 else if (newState ==
SCR_ETaskState.FAILED && !m_bTaskResolvedBeforeLoad)
85 else if (newState ==
SCR_ETaskState.CANCELLED && !m_bTaskResolvedBeforeLoad)
92 else if (newState ==
SCR_ETaskState.PROGRESSED && !m_bTaskResolvedBeforeLoad)
112 m_bTaskResolvedBeforeLoad = state;
122 m_TaskLayer.SetSlotTask(
this);
128 Print(
string.Format(
"ScenarioFramework: %1 could not be spawned and cannot bind it to task %2", m_sObjectToSpawn, m_TaskLayer.GetOwner().GetName()),
LogLevel.ERROR);
154 return m_sTaskDescription;
168 if (m_TaskLayer.m_Task)
169 return m_TaskLayer.m_Task.GetTaskState();
178 SCR_ScenarioFrameworkLayerTask
layer;
182 layer = SCR_ScenarioFrameworkLayerTask.Cast(entity.
FindComponent(SCR_ScenarioFrameworkLayerTask));
197 override void RestoreToDefault(
bool includeChildren =
false,
bool reinitAfterRestoration =
false,
bool affectRandomization =
true,
bool deleteSpawnedEntities =
true)
201 activationAction.RestoreToDefault();
206 activationAction.RestoreToDefault();
211 activationAction.RestoreToDefault();
216 activationAction.RestoreToDefault();
221 activationAction.RestoreToDefault();
226 activationAction.RestoreToDefault();
233 m_bTaskResolvedBeforeLoad =
false;
235 super.RestoreToDefault(includeChildren, reinitAfterRestoration, affectRandomization, deleteSpawnedEntities);
281 return super.InitNotTerminated();
292 super.InitEntitySpawnCheck();
enum EAITargetInfoCategory m_Entity
void OnTaskStateChanged(SCR_Task task, SCR_ETaskState newState)
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
SCR_EScenarioFrameworkLogicOperators
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_ScenarioFrameworkEActivationType
void DynamicReinit()
Reinitializes this layer.
ScriptInvokerScenarioFrameworkLayer GetOnAllChildrenSpawned()
bool m_bExcludeFromDynamicDespawn
void FinishInit()
Initializes children, retrieves them, and spawns them.
void SCR_ScenarioFrameworkLayerBase(IEntityComponentSource src, IEntity ent, IEntity parent)
void DynamicDespawn(SCR_ScenarioFrameworkLayerBase layer)
bool m_bDynamicallyDespawned
string GetTaskDescription()
void SCR_ScenarioFrameworkSlotBase(IEntityComponentSource src, IEntity ent, IEntity parent)
bool InitEntitySpawnCheck()
void OnInventoryParentChanged(InventoryStorageSlot oldSlot, InventoryStorageSlot newSlot)
override void StoreTaskSubjectToParentTaskLayer()
Sets delivery point entity for nested tasks within associated layers or parent layer if no associated...
LocalizedString GetTaskExecutionBriefing()
SCR_ETaskState GetTaskState()
void SetTaskResolvedBeforeLoad(bool state)
void ~SCR_ScenarioFrameworkSlotTask()
Removes current task from support entity if in scenario mode, otherwise despawns self.
SCR_ScenarioFrameworkLayerTask GetParentTaskLayer()
ref array< ref SCR_ScenarioFrameworkActionSave > m_aActionsOnCancelled
ref array< ref SCR_ScenarioFrameworkActionSave > m_aActionsOnCreated
SCR_ScenarioFrameworkSlotAISave m_aActionsOnFinished
ref array< ref SCR_ScenarioFrameworkActionSave > m_aActionsOnAssigned
ref array< ref SCR_ScenarioFrameworkActionSave > m_aActionsOnFailed
ref array< ref SCR_ScenarioFrameworkActionSave > m_aActionsOnProgress
SCR_ExtendedTaskSave m_sTaskExecutionBriefing
proto external Managed FindComponent(typename typeName)
proto external IEntity GetParent()
static bool IsEmptyOrWhiteSpace(string input)
IEntity GetOwner()
Owner entity of the fuel tank.
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
SCR_FieldOfViewSettings Attribute