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

Go to the source code of this file.

Data Structures

class  SCR_EditableFactionComponentClass
 

Functions

SCR_EditableFactionComponentClass SCR_EditableEntityComponentClass Attribute ()] protected ref array< ref SCR_ArsenalItemCountConfig > m_MaxCountPerItemType
 Special configuration for editable faction. More...
 
void SetFactionIndex (int index)
 
int GetFactionIndex ()
 
protected void SetFactionIndexBroadcast (int index)
 
protected void InitSpawnPointCount ()
 
protected void InitSpawnPointCountBroadcast (int spawnPointCount)
 
protected void OnSpawnpointFactionChanged (SCR_SpawnPoint spawnPoint)
 
protected void OnSpawnPointsChanged (string factionKey)
 
protected void OnSpawnPointCountChangedBroadcast (int spawnPointCount)
 
protected void InitTaskCount ()
 
protected void InitTaskCountBroadcast (int factionTaskCount)
 
protected void OnTasksChanged (notnull SCR_BaseTask task)
 
protected void OnTaskCountChangedBroadcast (int factionTaskCount)
 
void SetFactionPlayableServer (bool factionPlayable)
 
protected void OnFactionplayableChangedBroadcast (bool factionPlayable)
 
int GetFactionSpawnPointCount ()
 
int GetFactionTasksCount ()
 
ScriptInvoker GetOnSpawnPointCountChanged ()
 
ScriptInvoker GetOnTaskCountChanged ()
 
SCR_EArsenalItemType GetAllowedArsenalItemTypes ()
 
void SetAllowedArsenalItemTypes (SCR_EArsenalItemType allowedArsenalItemTypes)
 
override bool CanDuplicate (out notnull set< SCR_EditableEntityComponent > outRecipients)
 
override Faction GetFaction ()
 
override bool GetPos (out vector pos)
 
override bool GetEntityBudgetCost (out notnull array< ref SCR_EntityBudgetValue > outBudgets, IEntity owner=null)
 
override void OnPostInit (IEntity owner)
 Called on PostInit when all components are added. More...
 
override bool RplSave (ScriptBitWriter writer)
 
override bool RplLoad (ScriptBitReader reader)
 
void ~SCR_EditableFactionComponent ()
 

Variables

protected int m_iFactionIndex = -1
 
protected Faction m_Faction
 
protected SCR_Faction m_ScrFaction
 
protected ref SCR_UIInfo m_Info
 
protected int m_iSpawnPointCount = -1
 
protected int m_iTaskCount = -1
 
protected SCR_BaseTask m_PrevTask = null
 
protected ref ScriptInvoker Event_OnSpawnPointCountChanged = new ScriptInvoker()
 
protected ref ScriptInvoker Event_OnTaskCountChanged = new ScriptInvoker()
 
protected SCR_EArsenalItemType m_AllowedArsenalItemTypes
 
protected ref map< SCR_EArsenalItemType, intm_aCurrentItemTaken = new map<SCR_EArsenalItemType, int>()
 

Function Documentation

◆ CanDuplicate()

override bool CanDuplicate ( out notnull set< SCR_EditableEntityComponent outRecipients)

Definition at line 313 of file SCR_EditableFactionComponent.c.

◆ GetAllowedArsenalItemTypes()

SCR_EArsenalItemType GetAllowedArsenalItemTypes ( )
Returns

Definition at line 300 of file SCR_EditableFactionComponent.c.

◆ GetEntityBudgetCost()

override bool GetEntityBudgetCost ( out notnull array< ref SCR_EntityBudgetValue outBudgets,
IEntity  owner = null 
)

Definition at line 331 of file SCR_EditableFactionComponent.c.

◆ GetFaction()

override Faction GetFaction ( )

Definition at line 319 of file SCR_EditableFactionComponent.c.

◆ GetFactionIndex()

int GetFactionIndex ( )

Get index of a faction represented by this delegate.

Returns
Faction index

Definition at line 57 of file SCR_EditableFactionComponent.c.

◆ GetFactionSpawnPointCount()

int GetFactionSpawnPointCount ( )

Get Spawnpoint count of faction

Returns
int Spawn Point count

Definition at line 269 of file SCR_EditableFactionComponent.c.

◆ GetFactionTasksCount()

int GetFactionTasksCount ( )

Get Task count of faction

Returns
int Task count

Definition at line 277 of file SCR_EditableFactionComponent.c.

◆ GetOnSpawnPointCountChanged()

ScriptInvoker GetOnSpawnPointCountChanged ( )

Get On Spawn Point Count Changed Script Invoker

Returns
ScriptInvoker Event_OnSpawnPointCountChanged

Definition at line 285 of file SCR_EditableFactionComponent.c.

◆ GetOnTaskCountChanged()

ScriptInvoker GetOnTaskCountChanged ( )

Get On Task Count Changed Script Invoker

Returns
ScriptInvoker Event_OnTaskCountChanged

Definition at line 293 of file SCR_EditableFactionComponent.c.

◆ GetPos()

override bool GetPos ( out vector  pos)

Definition at line 325 of file SCR_EditableFactionComponent.c.

◆ InitSpawnPointCount()

protected void InitSpawnPointCount ( )

Definition at line 115 of file SCR_EditableFactionComponent.c.

◆ InitSpawnPointCountBroadcast()

protected void InitSpawnPointCountBroadcast ( int  spawnPointCount)

Definition at line 125 of file SCR_EditableFactionComponent.c.

◆ InitTaskCount()

protected void InitTaskCount ( )

Definition at line 180 of file SCR_EditableFactionComponent.c.

◆ InitTaskCountBroadcast()

protected void InitTaskCountBroadcast ( int  factionTaskCount)

Definition at line 195 of file SCR_EditableFactionComponent.c.

◆ OnFactionplayableChangedBroadcast()

protected void OnFactionplayableChangedBroadcast ( bool  factionPlayable)

Definition at line 256 of file SCR_EditableFactionComponent.c.

◆ OnSpawnPointCountChangedBroadcast()

protected void OnSpawnPointCountChangedBroadcast ( int  spawnPointCount)

Definition at line 170 of file SCR_EditableFactionComponent.c.

◆ OnSpawnpointFactionChanged()

protected void OnSpawnpointFactionChanged ( SCR_SpawnPoint  spawnPoint)

Definition at line 131 of file SCR_EditableFactionComponent.c.

◆ OnSpawnPointsChanged()

protected void OnSpawnPointsChanged ( string  factionKey)

Definition at line 140 of file SCR_EditableFactionComponent.c.

◆ OnTaskCountChangedBroadcast()

protected void OnTaskCountChangedBroadcast ( int  factionTaskCount)

Definition at line 228 of file SCR_EditableFactionComponent.c.

◆ OnTasksChanged()

protected void OnTasksChanged ( notnull SCR_BaseTask  task)

Definition at line 202 of file SCR_EditableFactionComponent.c.

◆ RplLoad()

override bool RplLoad ( ScriptBitReader  reader)

Definition at line 359 of file SCR_EditableFactionComponent.c.

◆ RplSave()

override bool RplSave ( ScriptBitWriter  writer)

Definition at line 348 of file SCR_EditableFactionComponent.c.

◆ SetAllowedArsenalItemTypes()

void SetAllowedArsenalItemTypes ( SCR_EArsenalItemType  allowedArsenalItemTypes)
Parameters
[in]allowedArsenalItemTypes

Definition at line 307 of file SCR_EditableFactionComponent.c.

◆ SetFactionIndex()

void SetFactionIndex ( int  index)

Assign faction to this editable entity.

Parameters
[in]indexIndex of the faction in FactionManager array

Definition at line 45 of file SCR_EditableFactionComponent.c.

◆ SetFactionIndexBroadcast()

protected void SetFactionIndexBroadcast ( int  index)

Definition at line 64 of file SCR_EditableFactionComponent.c.

◆ SetFactionPlayableServer()

void SetFactionPlayableServer ( bool  factionPlayable)

Set faction Playable, can only be called from the server side

Parameters
[in]factionPlayablebool for setting faction playable

Definition at line 239 of file SCR_EditableFactionComponent.c.

◆ ~SCR_EditableFactionComponent()

void ~SCR_EditableFactionComponent ( )

Definition at line 379 of file SCR_EditableFactionComponent.c.

Variable Documentation

◆ Event_OnSpawnPointCountChanged

protected ref ScriptInvoker Event_OnSpawnPointCountChanged = new ScriptInvoker()

Definition at line 35 of file SCR_EditableFactionComponent.c.

◆ Event_OnTaskCountChanged

protected ref ScriptInvoker Event_OnTaskCountChanged = new ScriptInvoker()

Definition at line 36 of file SCR_EditableFactionComponent.c.

◆ m_aCurrentItemTaken

protected ref map<SCR_EArsenalItemType, int> m_aCurrentItemTaken = new map<SCR_EArsenalItemType, int>()

Definition at line 40 of file SCR_EditableFactionComponent.c.

◆ m_AllowedArsenalItemTypes

protected SCR_EArsenalItemType m_AllowedArsenalItemTypes

Definition at line 39 of file SCR_EditableFactionComponent.c.

◆ m_Faction

protected Faction m_Faction

Definition at line 23 of file SCR_EditableFactionComponent.c.

◆ m_iFactionIndex

protected int m_iFactionIndex = -1

Definition at line 21 of file SCR_EditableFactionComponent.c.

◆ m_Info

protected ref SCR_UIInfo m_Info

Definition at line 25 of file SCR_EditableFactionComponent.c.

◆ m_iSpawnPointCount

protected int m_iSpawnPointCount = -1

Definition at line 28 of file SCR_EditableFactionComponent.c.

◆ m_iTaskCount

protected int m_iTaskCount = -1

Definition at line 29 of file SCR_EditableFactionComponent.c.

◆ m_PrevTask

protected SCR_BaseTask m_PrevTask = null

Definition at line 32 of file SCR_EditableFactionComponent.c.

◆ m_ScrFaction

protected SCR_Faction m_ScrFaction

Definition at line 24 of file SCR_EditableFactionComponent.c.