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

Go to the source code of this file.

Classes

class  SCR_GroupTaskManagerComponentClass

Typedefs

typedef func ScriptInvokerGroupTaskSetMethod
typedef ScriptInvokerBase< ScriptInvokerGroupTaskSetMethodScriptInvokerGroupTaskSet
typedef func ScriptInvokerRequestedGroupTaskSetMethod
typedef ScriptInvokerBase< ScriptInvokerRequestedGroupTaskSetMethodScriptInvokerRequestedGroupTaskSet

Functions

void ScriptInvokerGroupTaskSetMethod (SCR_Task task, int byPlayerID)
void ScriptInvokerRequestedGroupTaskSetMethod (SCR_Task task, int byPlayerID, int requesterGroupId)
SCR_GroupTaskManagerComponentClass ScriptComponentClass Attribute ("{8FD30741F5E75C87}Configs/Task/GroupTaskRelevanceConfig.conf", desc:"Config with group task relevance")
void RpcDo_AddTaskFrequency (RplId taskRplId, int frequency)
void RpcDo_RemoveTaskFrequency (RplId taskRplId)
bool IsEnabledAssigningFrequencies ()
bool IsAnyFrequencyFreeForFaction (notnull Faction faction)
void SetFreeFrequencyForFaction (notnull Faction faction, bool isFree)
string GetTaskPrefabClassName (ResourceName taskPrefabName)
bool CanCreateNewTaskWithResourceName (ResourceName taskPrefabResourceName, notnull Faction faction)
bool CanCreateNewTaskWithTypename (typename taskTypename, notnull Faction faction)
bool CanCreateNewTaskWithClassName (string taskClassName, notnull Faction faction)
bool CanAssignFrequencyToTask (notnull SCR_Task task)
int GetTaskFrequency (notnull SCR_Task task)
SCR_Task GetTaskByFrequency (notnull Faction faction, int frequency)
string GetTaskTranslatedName (notnull SCR_Task task)
Faction GetTaskFaction (notnull SCR_Task task)
RplId GetTaskRplId (SCR_Task task)
void AssignFrequency (notnull SCR_Task task)
void ClaimFrequency (SCR_Task task, int frequency, Faction faction)
int GetFreeFrequency (Faction faction)
void ReleaseFrequency (notnull SCR_Task task)
ScriptInvokerGroupTaskSet GetOnGroupTaskSet ()
ScriptInvokerRequestedGroupTaskSet GetOnRequestedGroupTaskSet ()
SCR_GroupTaskRelevance GetGroupTaskRelevance (typename taskTypename)
void OnGroupRoleChanged (int groupID, SCR_EGroupRole groupRole)
void OnPlayableGroupRemoved (SCR_AIGroup group)
void OnPlayerRemoved (SCR_AIGroup group, int playerID)
void OnTaskRemoved (SCR_Task task)
void CheckAndDeleteRequestedTasks (SCR_AIGroup group)
void SetGroupTaskOwnership (notnull SCR_Task task)
void SetGroupTask (notnull SCR_Task task, int byPlayerID)
void SetRequestedGroupTaskOwnership (notnull SCR_Task task)
void SetRequestedGroupTask (notnull SCR_Task task, int byPlayerID, int requesterGroupId)
array< SCR_AIGroupGetPlayableGroupsSortedByRelevance (notnull SCR_Task task, notnull Faction faction)
override bool RplSave (ScriptBitWriter writer)
override bool RplLoad (ScriptBitReader reader)
override void EOnInit (IEntity owner)
override void OnPostInit (IEntity owner)
 Editable Mine.
override void OnDelete (IEntity owner)
void SCR_GroupTaskManagerComponent (IEntityComponentSource src, IEntity ent, IEntity parent)

Variables

SCR_TaskSystem m_TaskSystem
SCR_GroupsManagerComponent m_GroupsManager
FactionManager m_FactionManager
RplComponent m_RplComponent
ref ScriptInvokerGroupTaskSet m_OnGroupTaskSet
ref ScriptInvokerRequestedGroupTaskSet m_OnRequestedGroupTaskSet
ref map< int, ref FactionHolderm_mUsedFrequenciesByFactionMap = new map<int, ref FactionHolder>()
ref map< int, intm_mUsedFrequenciesByTaskMap = new map<int, int>()

Typedef Documentation

◆ ScriptInvokerGroupTaskSet

Definition at line 3 of file SCR_GroupTaskManagerComponent.c.

◆ ScriptInvokerGroupTaskSetMethod

◆ ScriptInvokerRequestedGroupTaskSet

◆ ScriptInvokerRequestedGroupTaskSetMethod

Function Documentation

◆ AssignFrequency()

void AssignFrequency ( notnull SCR_Task task)
protected

Definition at line 265 of file SCR_GroupTaskManagerComponent.c.

◆ Attribute()

SCR_GroupTaskManagerComponentClass ScriptComponentClass Attribute ( "{8FD30741F5E75C87}Configs/Task/GroupTaskRelevanceConfig.conf" ,
desc:"Config with group task relevance"  )

Definition at line 7 of file SCR_GroupTaskManagerComponent.c.

◆ CanAssignFrequencyToTask()

bool CanAssignFrequencyToTask ( notnull SCR_Task task)
protected
Parameters
[in]task
Returns
true when the task can be assigned a frequency

Definition at line 156 of file SCR_GroupTaskManagerComponent.c.

◆ CanCreateNewTaskWithClassName()

bool CanCreateNewTaskWithClassName ( string taskClassName,
notnull Faction faction )
protected
Parameters
[in]taskClassName
[in]faction
Returns
true when a task can be created for a faction

Definition at line 135 of file SCR_GroupTaskManagerComponent.c.

◆ CanCreateNewTaskWithResourceName()

bool CanCreateNewTaskWithResourceName ( ResourceName taskPrefabResourceName,
notnull Faction faction )
protected
Parameters
[in]taskPrefabResourceName
[in]faction
Returns
true when a task can be created for a faction

Definition at line 117 of file SCR_GroupTaskManagerComponent.c.

◆ CanCreateNewTaskWithTypename()

bool CanCreateNewTaskWithTypename ( typename taskTypename ,
notnull Faction faction )
protected
Parameters
[in]taskTypename
[in]faction
Returns
true when a task can be created for a faction

Definition at line 126 of file SCR_GroupTaskManagerComponent.c.

◆ CheckAndDeleteRequestedTasks()

void CheckAndDeleteRequestedTasks ( SCR_AIGroup group)
protected

Definition at line 512 of file SCR_GroupTaskManagerComponent.c.

◆ ClaimFrequency()

void ClaimFrequency ( SCR_Task task,
int frequency,
Faction faction )
protected

Definition at line 289 of file SCR_GroupTaskManagerComponent.c.

◆ GetFreeFrequency()

int GetFreeFrequency ( Faction faction)
protected

Definition at line 323 of file SCR_GroupTaskManagerComponent.c.

◆ GetGroupTaskRelevance()

SCR_GroupTaskRelevance GetGroupTaskRelevance ( typename taskTypename )
protected
Parameters
[in]taskTypename
Returns
group task relevance

Definition at line 431 of file SCR_GroupTaskManagerComponent.c.

◆ GetOnGroupTaskSet()

ScriptInvokerGroupTaskSet GetOnGroupTaskSet ( )
protected

Definition at line 411 of file SCR_GroupTaskManagerComponent.c.

◆ GetOnRequestedGroupTaskSet()

ScriptInvokerRequestedGroupTaskSet GetOnRequestedGroupTaskSet ( )
protected

Definition at line 420 of file SCR_GroupTaskManagerComponent.c.

◆ GetPlayableGroupsSortedByRelevance()

array< SCR_AIGroup > GetPlayableGroupsSortedByRelevance ( notnull SCR_Task task,
notnull Faction faction )
protected
Parameters
[in]task
[in]faction
Returns
Playable groups sorted by group task relevance

Definition at line 666 of file SCR_GroupTaskManagerComponent.c.

◆ GetTaskByFrequency()

SCR_Task GetTaskByFrequency ( notnull Faction faction,
int frequency )
protected
Parameters
[in]faction
[in]frequency
Returns
task

Definition at line 193 of file SCR_GroupTaskManagerComponent.c.

◆ GetTaskFaction()

Faction GetTaskFaction ( notnull SCR_Task task)
protected
Parameters
[in]task
Returns
task faction

Definition at line 233 of file SCR_GroupTaskManagerComponent.c.

◆ GetTaskFrequency()

int GetTaskFrequency ( notnull SCR_Task task)
protected
Parameters
[in]task
Returns
task frequency

Definition at line 177 of file SCR_GroupTaskManagerComponent.c.

◆ GetTaskPrefabClassName()

string GetTaskPrefabClassName ( ResourceName taskPrefabName)
protected

Definition at line 96 of file SCR_GroupTaskManagerComponent.c.

◆ GetTaskRplId()

RplId GetTaskRplId ( SCR_Task task)
protected

Definition at line 250 of file SCR_GroupTaskManagerComponent.c.

◆ GetTaskTranslatedName()

string GetTaskTranslatedName ( notnull SCR_Task task)
protected
Parameters
[in]task
Returns
task translated name

Definition at line 219 of file SCR_GroupTaskManagerComponent.c.

◆ IsAnyFrequencyFreeForFaction()

bool IsAnyFrequencyFreeForFaction ( notnull Faction faction)
protected
Parameters
[in]faction
Returns
true if any frequency is free for a faction

Definition at line 74 of file SCR_GroupTaskManagerComponent.c.

◆ IsEnabledAssigningFrequencies()

bool IsEnabledAssigningFrequencies ( )
protected

Check if the assigning frequencies is enabled.

Returns
true when enabled

Definition at line 66 of file SCR_GroupTaskManagerComponent.c.

◆ OnDelete()

override void OnDelete ( IEntity owner)
protected

Definition at line 776 of file SCR_GroupTaskManagerComponent.c.

◆ OnGroupRoleChanged()

void OnGroupRoleChanged ( int groupID,
SCR_EGroupRole groupRole )
protected

Definition at line 440 of file SCR_GroupTaskManagerComponent.c.

◆ OnPlayableGroupRemoved()

void OnPlayableGroupRemoved ( SCR_AIGroup group)
protected

Definition at line 488 of file SCR_GroupTaskManagerComponent.c.

◆ OnPlayerRemoved()

void OnPlayerRemoved ( SCR_AIGroup group,
int playerID )
protected

Definition at line 497 of file SCR_GroupTaskManagerComponent.c.

◆ OnTaskRemoved()

void OnTaskRemoved ( SCR_Task task)
protected

Definition at line 506 of file SCR_GroupTaskManagerComponent.c.

◆ ReleaseFrequency()

void ReleaseFrequency ( notnull SCR_Task task)
protected

Definition at line 359 of file SCR_GroupTaskManagerComponent.c.

◆ RpcDo_AddTaskFrequency()

void RpcDo_AddTaskFrequency ( RplId taskRplId,
int frequency )
protected

Definition at line 51 of file SCR_GroupTaskManagerComponent.c.

◆ RpcDo_RemoveTaskFrequency()

void RpcDo_RemoveTaskFrequency ( RplId taskRplId)
protected

Definition at line 58 of file SCR_GroupTaskManagerComponent.c.

◆ RplLoad()

override bool RplLoad ( ScriptBitReader reader)
protected

Definition at line 716 of file SCR_GroupTaskManagerComponent.c.

◆ RplSave()

override bool RplSave ( ScriptBitWriter writer)
protected

Definition at line 701 of file SCR_GroupTaskManagerComponent.c.

◆ SCR_GroupTaskManagerComponent()

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

Definition at line 794 of file SCR_GroupTaskManagerComponent.c.

◆ ScriptInvokerGroupTaskSetMethod()

void ScriptInvokerGroupTaskSetMethod ( SCR_Task task,
int byPlayerID )

◆ ScriptInvokerRequestedGroupTaskSetMethod()

void ScriptInvokerRequestedGroupTaskSetMethod ( SCR_Task task,
int byPlayerID,
int requesterGroupId )

◆ SetFreeFrequencyForFaction()

void SetFreeFrequencyForFaction ( notnull Faction faction,
bool isFree )
protected

Definition at line 84 of file SCR_GroupTaskManagerComponent.c.

◆ SetGroupTask()

void SetGroupTask ( notnull SCR_Task task,
int byPlayerID )
protected
Parameters
[in]task
[in]byPlayerID

Definition at line 584 of file SCR_GroupTaskManagerComponent.c.

◆ SetGroupTaskOwnership()

void SetGroupTaskOwnership ( notnull SCR_Task task)
protected
Parameters
[in]task

Definition at line 542 of file SCR_GroupTaskManagerComponent.c.

◆ SetRequestedGroupTask()

void SetRequestedGroupTask ( notnull SCR_Task task,
int byPlayerID,
int requesterGroupId )
protected
Parameters
[in]task
[in]byPlayerID
[in]requesterGroupId

Definition at line 653 of file SCR_GroupTaskManagerComponent.c.

◆ SetRequestedGroupTaskOwnership()

void SetRequestedGroupTaskOwnership ( notnull SCR_Task task)
protected
Parameters
[in]task

Definition at line 595 of file SCR_GroupTaskManagerComponent.c.

Variable Documentation

◆ m_FactionManager

FactionManager m_FactionManager
protected

Definition at line 39 of file SCR_GroupTaskManagerComponent.c.

◆ m_GroupsManager

SCR_GroupsManagerComponent m_GroupsManager
protected

Definition at line 38 of file SCR_GroupTaskManagerComponent.c.

◆ m_mUsedFrequenciesByFactionMap

ref map<int, ref FactionHolder> m_mUsedFrequenciesByFactionMap = new map<int, ref FactionHolder>()
protected

Definition at line 44 of file SCR_GroupTaskManagerComponent.c.

◆ m_mUsedFrequenciesByTaskMap

ref map<int, int> m_mUsedFrequenciesByTaskMap = new map<int, int>()
protected

Definition at line 45 of file SCR_GroupTaskManagerComponent.c.

◆ m_OnGroupTaskSet

ref ScriptInvokerGroupTaskSet m_OnGroupTaskSet
protected

Definition at line 42 of file SCR_GroupTaskManagerComponent.c.

◆ m_OnRequestedGroupTaskSet

ref ScriptInvokerRequestedGroupTaskSet m_OnRequestedGroupTaskSet
protected

Definition at line 43 of file SCR_GroupTaskManagerComponent.c.

◆ m_RplComponent

RplComponent m_RplComponent
protected

Definition at line 40 of file SCR_GroupTaskManagerComponent.c.

◆ m_TaskSystem

SCR_TaskSystem m_TaskSystem
protected

Definition at line 37 of file SCR_GroupTaskManagerComponent.c.