Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ScenarioFrameworkLayerTaskDefend.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_ScenarioFrameworkLayerTaskDefendClass
 
class  SCR_ScenarioFrameworkTaskDefendFactionSettings
 
class  SCR_ScenarioFrameworkTaskDefendAttackingFactionTitle
 

Functions

SCR_ScenarioFrameworkLayerTaskDefendClass SCR_ScenarioFrameworkLayerTaskClass Attribute (desc:"Will use trigger that is named for Defend params calculations", category:"Task")
 
float GetDefendTime ()
 
void SetDefendTime (float time)
 
SCR_CharacterTriggerEntity GetCharacterTriggerEntity ()
 
void FindCharacterTriggerEntity ()
 
override bool SetSupportEntity ()
 
void SCR_ScenarioFrameworkLayerTaskDefend (IEntityComponentSource src, IEntity ent, IEntity parent)
 
protected void CountAttackerDefenderNumbers (out int defenderCount, out int attackerCount)
 
void EvaluateStatus ()
 
void SetupAttackerLayer ()
 
void SetupEvaluation ()
 
override void RestoreToDefault (bool includeChildren=false, bool reinitAfterRestoration=false)
 
override void DynamicDespawn (SCR_ScenarioFrameworkLayerBase layer)
 
override void Init (SCR_ScenarioFrameworkArea area=null, SCR_ScenarioFrameworkEActivationType activation=SCR_ScenarioFrameworkEActivationType.SAME_AS_PARENT)
 
override void AfterAllChildrenSpawned (SCR_ScenarioFrameworkLayerBase layer)
 
override void OnPostInit (IEntity owner)
 Editable Mine. More...
 
void InitHUD ()
 
void UpdateHUD ()
 
void RpcDo_UpdateHUD (float countdown, int taskID)
 
void CheckAttackerLayers ()
 
void RemovePeriodicUpdates ()
 
override void EOnFrame (IEntity owner, float timeSlice)
 
class SCR_ScenarioFrameworkTaskDefendFactionSettings _WB_GetCustomTitle (BaseContainer source, out string title)
 
Faction GetFaction ()
 
void SetFactionKey (FactionKey factionKey)
 
bool GetCountOnlyPlayers ()
 
SCR_ScenarioFrameworkTaskDefendAttackingFactionTitle BaseContainerCustomTitle BaseContainerProps ()
 

Variables

UI layouts HUD CampaignMP CampaignMainHUD layout
 
UI layouts HUD CampaignMP CampaignMainHUD category
 
protected ref array< ref SCR_ScenarioFrameworkTaskDefendFactionSettingsm_aFactionSettings
 
protected float m_fMinDefenderPercentageRatio
 
protected ref array< string > m_aAttackerLayerNames
 
protected bool m_bEarlierEvaluation
 
protected bool m_bDelayedEvaluation
 
protected bool m_bDisplayDelayedEvaluationText
 
protected LocalizedString m_sDelayedEvaluationText
 
protected SCR_CharacterTriggerEntity m_CharacterTriggerEntity
 
protected float m_fTempCountdown = m_fDefendTime
 
protected string m_sFormattedCountdownTitle = string.Format(WidgetManager.Translate("<color rgba=\"226, 168, 80, 255\">%1</color>", m_sCountdownTitleText))
 
protected string m_sFormattedDelayedEvaluationText = string.Format(WidgetManager.Translate("<color rgba=\"226, 168, 80, 255\">%1</color>", m_sDelayedEvaluationText))
 
protected ref array< SCR_ScenarioFrameworkLayerBasem_aAttackerLayer = {}
 
protected float m_fTempTimeSlice
 
protected bool m_bTaskEvaluated
 
protected bool m_bEvaluationSet
 
protected WorldTimestamp m_fEvaluateTimeStart
 
protected WorldTimestamp m_fEvaluateTimeEnd
 
protected Widget m_wRoot
 
protected Widget m_wInfoOverlay
 
protected Widget m_wCountdownOverlay
 
protected RichTextWidget m_wCountdown
 
protected RichTextWidget m_wFlavour
 
protected FactionKey m_sFactionKey
 
protected bool m_bCountOnlyPlayers
 

Function Documentation

◆ _WB_GetCustomTitle()

class SCR_ScenarioFrameworkTaskDefendFactionSettings _WB_GetCustomTitle ( BaseContainer  source,
out string  title 
)

Definition at line 607 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ AfterAllChildrenSpawned()

override void AfterAllChildrenSpawned ( SCR_ScenarioFrameworkLayerBase  layer)

Definition at line 319 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ Attribute()

SCR_ScenarioFrameworkLayerTaskDefendClass SCR_ScenarioFrameworkLayerTaskClass Attribute ( desc:"Will use trigger that is named for Defend params calculations"  ,
category:"Task"   
)

Definition at line 8 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ BaseContainerProps()

SCR_ScenarioFrameworkTaskDefendAttackingFactionTitle BaseContainerCustomTitle BaseContainerProps ( )

◆ CheckAttackerLayers()

void CheckAttackerLayers ( )

Definition at line 497 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ CountAttackerDefenderNumbers()

protected void CountAttackerDefenderNumbers ( out int  defenderCount,
out int  attackerCount 
)

Definition at line 128 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ DynamicDespawn()

override void DynamicDespawn ( SCR_ScenarioFrameworkLayerBase  layer)

Definition at line 287 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ EOnFrame()

override void EOnFrame ( IEntity  owner,
float  timeSlice 
)

Definition at line 540 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ EvaluateStatus()

void EvaluateStatus ( )

Definition at line 154 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ FindCharacterTriggerEntity()

void FindCharacterTriggerEntity ( )

Definition at line 88 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ GetCharacterTriggerEntity()

SCR_CharacterTriggerEntity GetCharacterTriggerEntity ( )
Returns

Definition at line 81 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ GetCountOnlyPlayers()

bool _WB_GetCustomTitle::GetCountOnlyPlayers ( )
Returns

Definition at line 567 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ GetDefendTime()

float GetDefendTime ( )
Returns

Definition at line 67 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ GetFaction()

Faction _WB_GetCustomTitle::GetFaction ( )
Returns

Definition at line 549 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ Init()

override void Init ( SCR_ScenarioFrameworkArea  area = null,
SCR_ScenarioFrameworkEActivationType  activation = SCR_ScenarioFrameworkEActivationType.SAME_AS_PARENT 
)

Definition at line 292 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ InitHUD()

void InitHUD ( )

Definition at line 362 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ RemovePeriodicUpdates()

void RemovePeriodicUpdates ( )

Definition at line 531 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ RestoreToDefault()

override void RestoreToDefault ( bool  includeChildren = false,
bool  reinitAfterRestoration = false 
)

Definition at line 268 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ RpcDo_UpdateHUD()

void RpcDo_UpdateHUD ( float  countdown,
int  taskID 
)
Parameters
[in]countdown
[in]taskID

Definition at line 450 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ SCR_ScenarioFrameworkLayerTaskDefend()

void SCR_ScenarioFrameworkLayerTaskDefend ( IEntityComponentSource  src,
IEntity  ent,
IEntity  parent 
)
Parameters
[in]src
[in]ent
[in]parent

Definition at line 122 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ SetDefendTime()

void SetDefendTime ( float  time)
Parameters
[in]time

Definition at line 74 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ SetFactionKey()

void _WB_GetCustomTitle::SetFactionKey ( FactionKey  factionKey)
Parameters
[in]factionKey

Definition at line 560 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ SetSupportEntity()

override bool SetSupportEntity ( )

Definition at line 106 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ SetupAttackerLayer()

void SetupAttackerLayer ( )

Definition at line 214 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ SetupEvaluation()

void SetupEvaluation ( )

Definition at line 233 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ UpdateHUD()

void UpdateHUD ( )

Definition at line 404 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

Variable Documentation

◆ category

UI layouts HUD CampaignMP CampaignMainHUD category

Definition at line 21 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ layout

UI layouts HUD CampaignMP CampaignMainHUD layout

Definition at line 20 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_aAttackerLayer

protected ref array<SCR_ScenarioFrameworkLayerBase> m_aAttackerLayer = {}

Definition at line 51 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_aAttackerLayerNames

protected ref array<string> m_aAttackerLayerNames

Definition at line 30 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_aFactionSettings

protected ref array<ref SCR_ScenarioFrameworkTaskDefendFactionSettings> m_aFactionSettings

Definition at line 24 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_bCountOnlyPlayers

protected bool m_bCountOnlyPlayers

Definition at line 545 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_bDelayedEvaluation

protected bool m_bDelayedEvaluation

Definition at line 36 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_bDisplayDelayedEvaluationText

protected bool m_bDisplayDelayedEvaluationText

Definition at line 39 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_bEarlierEvaluation

protected bool m_bEarlierEvaluation

Definition at line 33 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_bEvaluationSet

protected bool m_bEvaluationSet

Definition at line 55 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_bTaskEvaluated

protected bool m_bTaskEvaluated

Definition at line 54 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_CharacterTriggerEntity

protected SCR_CharacterTriggerEntity m_CharacterTriggerEntity

Definition at line 44 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_fEvaluateTimeEnd

protected WorldTimestamp m_fEvaluateTimeEnd

Definition at line 57 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_fEvaluateTimeStart

protected WorldTimestamp m_fEvaluateTimeStart

Definition at line 56 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_fMinDefenderPercentageRatio

protected float m_fMinDefenderPercentageRatio

Definition at line 27 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_fTempCountdown

protected float m_fTempCountdown = m_fDefendTime

Definition at line 46 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_fTempTimeSlice

protected float m_fTempTimeSlice

Definition at line 53 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_sDelayedEvaluationText

protected LocalizedString m_sDelayedEvaluationText

Definition at line 42 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_sFactionKey

protected FactionKey m_sFactionKey

Definition at line 542 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_sFormattedCountdownTitle

protected string m_sFormattedCountdownTitle = string.Format(WidgetManager.Translate("<color rgba=\"226, 168, 80, 255\">%1</color>", m_sCountdownTitleText))

Definition at line 48 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_sFormattedDelayedEvaluationText

protected string m_sFormattedDelayedEvaluationText = string.Format(WidgetManager.Translate("<color rgba=\"226, 168, 80, 255\">%1</color>", m_sDelayedEvaluationText))

Definition at line 49 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_wCountdown

protected RichTextWidget m_wCountdown

Definition at line 62 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_wCountdownOverlay

protected Widget m_wCountdownOverlay

Definition at line 61 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_wFlavour

protected RichTextWidget m_wFlavour

Definition at line 63 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_wInfoOverlay

protected Widget m_wInfoOverlay

Definition at line 60 of file SCR_ScenarioFrameworkLayerTaskDefend.c.

◆ m_wRoot

protected Widget m_wRoot

Definition at line 59 of file SCR_ScenarioFrameworkLayerTaskDefend.c.