Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_EditableFactionComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_EditableFactionComponentClass

Functions

SCR_EditableFactionComponentClass SCR_EditableEntityComponentClass Attribute ()] protected ref array< ref SCR_ArsenalItemCountConfig > m_MaxCountPerItemType
 Special configuration for editable faction.
void SetFactionIndexBroadcast (int index)
void SetFactionFriendly_S (int FactionIndex)
void SetFactionFriendlyBroadcast (int FactionIndex)
void SetFactionFriendlyOneWay_S (int FactionIndex)
void RpcDo_SetFactionFriendlyOneWayBroadcast (int FactionIndex)
void SetFactionHostile_S (int FactionIndex)
void SetFactionHostileBroadcast (int FactionIndex)
void InitSpawnPointCount ()
void InitSpawnPointCountBroadcast (int spawnPointCount)
void OnSpawnpointFactionChanged (SCR_SpawnPoint spawnPoint)
void OnSpawnPointCountChanged (string factionKey)
void ProcessQueuedSpawnPointChanges ()
void OnSpawnPointsChanged (string factionKey)
void OnSpawnPointCountChangedBroadcast (int spawnPointCount)
void InitTaskCount ()
void InitTaskCountBroadcast (int factionTaskCount)
void OnTaskAdded (notnull SCR_Task task)
void OnTaskRemoved (notnull SCR_Task task)
void QueueTaskCountChanges (notnull SCR_Task task)
void OnTaskCountChanged ()
void OnTaskCountChangedBroadcast (int factionTaskCount)
void SetFactionPlayableServer (bool factionPlayable)
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)
 Editable Mine.
override bool RplSave (ScriptBitWriter writer)
override bool RplLoad (ScriptBitReader reader)
void ~SCR_EditableFactionComponent ()

Variables

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

Function Documentation

◆ CanDuplicate()

override bool CanDuplicate ( out notnull set< SCR_EditableEntityComponent > outRecipients)
protected

Definition at line 459 of file SCR_EditableFactionComponent.c.

◆ GetAllowedArsenalItemTypes()

SCR_EArsenalItemType GetAllowedArsenalItemTypes ( )
protected
Returns

Definition at line 446 of file SCR_EditableFactionComponent.c.

◆ GetEntityBudgetCost()

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

Definition at line 477 of file SCR_EditableFactionComponent.c.

◆ GetFaction()

override Faction GetFaction ( )
protected

Definition at line 465 of file SCR_EditableFactionComponent.c.

◆ GetFactionSpawnPointCount()

int GetFactionSpawnPointCount ( )
protected

Get Spawnpoint count of faction

Returns
int Spawn Point count

Definition at line 415 of file SCR_EditableFactionComponent.c.

◆ GetFactionTasksCount()

int GetFactionTasksCount ( )
protected

Get Task count of faction

Returns
int Task count

Definition at line 423 of file SCR_EditableFactionComponent.c.

◆ GetOnSpawnPointCountChanged()

ScriptInvoker GetOnSpawnPointCountChanged ( )
protected

Get On Spawn Point Count Changed Script Invoker

Returns
ScriptInvoker Event_OnSpawnPointCountChanged

Definition at line 431 of file SCR_EditableFactionComponent.c.

◆ GetOnTaskCountChanged()

ScriptInvoker GetOnTaskCountChanged ( )
protected

Get On Task Count Changed Script Invoker

Returns
ScriptInvoker Event_OnTaskCountChanged

Definition at line 439 of file SCR_EditableFactionComponent.c.

◆ GetPos()

override bool GetPos ( out vector pos)
protected

Definition at line 471 of file SCR_EditableFactionComponent.c.

◆ InitSpawnPointCount()

void InitSpawnPointCount ( )
protected

Definition at line 196 of file SCR_EditableFactionComponent.c.

◆ InitSpawnPointCountBroadcast()

void InitSpawnPointCountBroadcast ( int spawnPointCount)
protected

Definition at line 206 of file SCR_EditableFactionComponent.c.

◆ InitTaskCount()

void InitTaskCount ( )
protected

Definition at line 289 of file SCR_EditableFactionComponent.c.

◆ InitTaskCountBroadcast()

void InitTaskCountBroadcast ( int factionTaskCount)
protected

Definition at line 304 of file SCR_EditableFactionComponent.c.

◆ OnFactionplayableChangedBroadcast()

void OnFactionplayableChangedBroadcast ( bool factionPlayable)
protected

Definition at line 402 of file SCR_EditableFactionComponent.c.

◆ OnSpawnPointCountChanged()

void OnSpawnPointCountChanged ( string factionKey)
protected

Queues a spawn point change.

Parameters
[in]FactionKeyfaction faction that changed

Definition at line 233 of file SCR_EditableFactionComponent.c.

◆ OnSpawnPointCountChangedBroadcast()

void OnSpawnPointCountChangedBroadcast ( int spawnPointCount)
protected

Definition at line 279 of file SCR_EditableFactionComponent.c.

◆ OnSpawnpointFactionChanged()

void OnSpawnpointFactionChanged ( SCR_SpawnPoint spawnPoint)
protected

Definition at line 212 of file SCR_EditableFactionComponent.c.

◆ OnSpawnPointsChanged()

void OnSpawnPointsChanged ( string factionKey)
protected

Definition at line 260 of file SCR_EditableFactionComponent.c.

◆ OnTaskAdded()

void OnTaskAdded ( notnull SCR_Task task)
protected

Definition at line 311 of file SCR_EditableFactionComponent.c.

◆ OnTaskCountChanged()

void OnTaskCountChanged ( )
protected

Calls the method that sends the invoker and calls the RPC for clients for task count changes Basically we are "accumulating" task changes through the frame and then notifying about all of them at once instead of one by one

Definition at line 350 of file SCR_EditableFactionComponent.c.

◆ OnTaskCountChangedBroadcast()

void OnTaskCountChangedBroadcast ( int factionTaskCount)
protected

Definition at line 374 of file SCR_EditableFactionComponent.c.

◆ OnTaskRemoved()

void OnTaskRemoved ( notnull SCR_Task task)
protected

Definition at line 317 of file SCR_EditableFactionComponent.c.

◆ ProcessQueuedSpawnPointChanges()

void ProcessQueuedSpawnPointChanges ( )
protected

Calls the method that sends the invoker and calls the RPC for clients for spawn points changed Basically we are "accumulating" spawn point changes through the frame and then notifying about all of them at once instead of one by one

Definition at line 245 of file SCR_EditableFactionComponent.c.

◆ QueueTaskCountChanges()

void QueueTaskCountChanges ( notnull SCR_Task task)
protected

Queues a task change. We only have to notify once per frame that tasks changed, instead of once per changed task.

Parameters
[in]SCR_Tasktask task that changed

Definition at line 325 of file SCR_EditableFactionComponent.c.

◆ RpcDo_SetFactionFriendlyOneWayBroadcast()

void RpcDo_SetFactionFriendlyOneWayBroadcast ( int FactionIndex)
protected

Definition at line 149 of file SCR_EditableFactionComponent.c.

◆ RplLoad()

override bool RplLoad ( ScriptBitReader reader)
protected

Definition at line 553 of file SCR_EditableFactionComponent.c.

◆ RplSave()

override bool RplSave ( ScriptBitWriter writer)
protected

Definition at line 494 of file SCR_EditableFactionComponent.c.

◆ SetAllowedArsenalItemTypes()

void SetAllowedArsenalItemTypes ( SCR_EArsenalItemType allowedArsenalItemTypes)
protected
Parameters
[in]allowedArsenalItemTypes

Definition at line 453 of file SCR_EditableFactionComponent.c.

◆ SetFactionFriendly_S()

void SetFactionFriendly_S ( int FactionIndex)
protected

Replicates the setting faction to friendly. Called by SCR_FactionManager (Server only)

Parameters
[in]FactionIndexindex to set faction friendly to

Definition at line 115 of file SCR_EditableFactionComponent.c.

◆ SetFactionFriendlyBroadcast()

void SetFactionFriendlyBroadcast ( int FactionIndex)
protected

Definition at line 122 of file SCR_EditableFactionComponent.c.

◆ SetFactionFriendlyOneWay_S()

void SetFactionFriendlyOneWay_S ( int FactionIndex)
protected

Replicates the setting faction to friendly. Called by SCR_FactionManager (Server only)

Parameters
[in]FactionIndexindex to set faction friendly to

Definition at line 142 of file SCR_EditableFactionComponent.c.

◆ SetFactionHostile_S()

void SetFactionHostile_S ( int FactionIndex)
protected

Replicates the setting faction to hostile. Called by SCR_FactionManager (Server Only)

Parameters
[in]FactionIndexindex to set faction hostile to

Definition at line 169 of file SCR_EditableFactionComponent.c.

◆ SetFactionHostileBroadcast()

void SetFactionHostileBroadcast ( int FactionIndex)
protected

Definition at line 176 of file SCR_EditableFactionComponent.c.

◆ SetFactionIndexBroadcast()

void SetFactionIndexBroadcast ( int index)
protected

Definition at line 64 of file SCR_EditableFactionComponent.c.

◆ SetFactionPlayableServer()

void SetFactionPlayableServer ( bool factionPlayable)
protected

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

Parameters
[in]factionPlayablebool for setting faction playable

Definition at line 385 of file SCR_EditableFactionComponent.c.

◆ ~SCR_EditableFactionComponent()

void ~SCR_EditableFactionComponent ( )
protected

Definition at line 659 of file SCR_EditableFactionComponent.c.

Variable Documentation

◆ Event_OnSpawnPointCountChanged

ref ScriptInvoker Event_OnSpawnPointCountChanged = new ScriptInvoker()
protected

Definition at line 32 of file SCR_EditableFactionComponent.c.

◆ Event_OnTaskCountChanged

ref ScriptInvoker Event_OnTaskCountChanged = new ScriptInvoker()
protected

Definition at line 33 of file SCR_EditableFactionComponent.c.

◆ m_aCurrentItemTaken

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

Definition at line 37 of file SCR_EditableFactionComponent.c.

◆ m_AllowedArsenalItemTypes

SCR_EArsenalItemType m_AllowedArsenalItemTypes
protected

Definition at line 36 of file SCR_EditableFactionComponent.c.

◆ m_Faction

Faction m_Faction
protected

Definition at line 22 of file SCR_EditableFactionComponent.c.

◆ m_iFactionIndex

int m_iFactionIndex = -1
protected

Definition at line 20 of file SCR_EditableFactionComponent.c.

◆ m_Info

ref SCR_UIInfo m_Info
protected

Definition at line 24 of file SCR_EditableFactionComponent.c.

◆ m_iSpawnPointCount

int m_iSpawnPointCount = -1
protected

Definition at line 27 of file SCR_EditableFactionComponent.c.

◆ m_iTaskCount

int m_iTaskCount = -1
protected

Definition at line 28 of file SCR_EditableFactionComponent.c.

◆ m_ScrFaction

SCR_Faction m_ScrFaction
protected

Definition at line 23 of file SCR_EditableFactionComponent.c.