|
Arma Reforger Script API
|
Public Member Functions | |
| SCR_TaskData | GetTaskData () |
| Returns task data instance. | |
| SCR_TaskUIInfo | GetTaskUIInfo () |
| Returns task UI info. | |
| string | GetTaskID () |
| Returns task ID. | |
| void | SetTaskID (string taskID) |
| Sets ID of task. | |
| int | GetAuthorID () |
| Returns task author ID. | |
| void | SetAuthorID (int authorId) |
| Sets author id of task. | |
| LocalizedString | GetTaskName (out array< LocalizedString > params=null) |
| Returns name of task. | |
| void | SetTaskName (LocalizedString taskName, array< LocalizedString > taskNameParams=null) |
| Sets name of task. | |
| LocalizedString | GetTaskDescription (out array< LocalizedString > params=null) |
| Returns description of task. | |
| void | SetTaskDescription (LocalizedString taskDesc, array< LocalizedString > taskDescParams=null) |
| Sets description of task. | |
| string | GetTaskIconPath () |
| Returns task icon path. | |
| void | SetTaskIconPath (ResourceName iconPath) |
| Sets task icon path. | |
| string | GetTaskIconSetName () |
| Returns name of task icon set. | |
| void | SetTaskIconSetName (string iconSetName) |
| Sets name of task icon set. | |
| int | GetTaskAssigneeCount () |
| Returns number of assignees for this task. | |
| int | GetTaskAssigneePlayerCount (bool recursive=true) |
| Returns number of assigned players for this task; If recursive is true, it will check assigned groups as well. | |
| array< ref SCR_TaskExecutor > | GetTaskAssignees () |
| Returns array of assignees for this task. | |
| array< int > | GetTaskAssigneePlayerIDs () |
| Returns array of player assignees for this task. | |
| bool | IsTaskAssignedTo (SCR_TaskExecutor executor, out SCR_TaskExecutor match=null) |
| Returns true if specified executor is assigned to this task and provides matching executor. | |
| bool | AddTaskAssignee (SCR_TaskExecutor executor, bool listenToInvokers=true, int requesterID=0) |
| Tries to add a new assignee to this task. | |
| bool | RemoveTaskAssignee (SCR_TaskExecutor executor, bool listenToInvokers=true, int requesterID=0) |
| Tries to remove an assignee from this task. | |
| SCR_ETaskState | GetTaskState () |
| void | SetTaskState (SCR_ETaskState state) |
| SCR_ETaskOwnership | GetTaskOwnership () |
| void | SetTaskOwnership (SCR_ETaskOwnership ownership) |
| SCR_ETaskVisibility | GetTaskVisibility () |
| void | SetTaskVisibility (SCR_ETaskVisibility visibility) |
| SCR_ETaskUIVisibility | GetTaskUIVisibility () |
| void | SetTaskUIVisibility (SCR_ETaskUIVisibility visibility) |
| int | GetOwnerFactionCount () |
| array< string > | GetOwnerFactionKeys () |
| void | AddOwnerFactionKey (FactionKey factionKey) |
| void | RemoveOwnerFactionKey (FactionKey factionKey) |
| int | GetOwnerGroupCount () |
| array< int > | GetOwnerGroupIDs () |
| void | AddOwnerGroupID (int groupID) |
| void | RemoveOwnerGroupID (int groupID) |
| int | GetOwnerExecutorCount () |
| array< ref SCR_TaskExecutor > | GetOwnerExecutors () |
| bool | AddOwnerExecutor (SCR_TaskExecutor executor) |
| Tries to add an owner executor to this task. | |
| bool | RemoveOwnerExecutor (SCR_TaskExecutor executor) |
| Tries to remove an owner executor from this task. | |
| vector | GetTaskPosition () |
| Returns position of task. | |
| void | SetTaskPosition (vector position) |
| Sets position of task. | |
| SCR_TaskUIComponent | GetUIComponent () |
| ScriptInvokerVoid | GetOnDisplayDataChanged () |
| override void | _WB_AfterWorldUpdate (float timeSlice) |
| override void | EOnInit (IEntity owner) |
| void | SCR_Task (IEntitySource src, IEntity parent) |
| void | ~SCR_Task () |
Static Public Member Functions | |
| static SCR_TaskStateInvoker | GetOnTaskStateChanged () |
| static SCR_TaskOwnershipInvoker | GetOnTaskOwnershipChanged () |
| static SCR_TaskVisibilityInvoker | GetOnTaskVisibilityChanged () |
| static SCR_TaskUIVisibilityInvoker | GetOnTaskUIVisibilityChanged () |
| static SCR_TaskExecutorRequesterInvoker | GetOnTaskAssigneeAdded () |
| static SCR_TaskExecutorRequesterInvoker | GetOnTaskAssigneeRemoved () |
| static SCR_TaskFactionInvoker | GetOnOwnerFactionAdded () |
| static SCR_TaskFactionInvoker | GetOnOwnerFactionRemoved () |
| static SCR_TaskGroupInvoker | GetOnOwnerGroupAdded () |
| static SCR_TaskGroupInvoker | GetOnOwnerGroupRemoved () |
| static SCR_TaskExecutorInvoker | GetOnOwnerExecutorAdded () |
| static SCR_TaskExecutorInvoker | GetOnOwnerExecutorRemoved () |
Protected Member Functions | |
| void | Rpc_SetTaskID (string taskID) |
| void | Rpc_SetAuthorID (int authorId) |
| void | Rpc_SetTaskName (LocalizedString taskName, array< LocalizedString > taskNameParams) |
| void | Rpc_SetTaskDescription (LocalizedString taskDesc, array< LocalizedString > taskDescParams) |
| void | Rpc_SetTaskIconPath (ResourceName iconPath) |
| void | Rpc_SetTaskIconSetName (string iconSetName) |
| void | AddTaskAssignee_Proxy (SCR_TaskExecutor executor, int requesterID) |
| void | Rpc_AddTaskAssigneePlayer (SCR_TaskExecutorPlayer executor, int requesterID) |
| void | Rpc_AddTaskAssigneeEntity (SCR_TaskExecutorEntity executor, int requesterID) |
| void | Rpc_AddTaskAssigneeGroup (SCR_TaskExecutorGroup executor, int requesterID) |
| void | RemoveTaskAssignee_Proxy (SCR_TaskExecutor executor, int requesterID) |
| void | Rpc_RemoveTaskAssigneePlayer (SCR_TaskExecutorPlayer executor, int requesterID) |
| void | Rpc_RemoveTaskAssigneeEntity (SCR_TaskExecutorEntity executor, int requesterID) |
| void | Rpc_RemoveTaskAssigneeGroup (SCR_TaskExecutorGroup executor, int requesterID) |
| void | Rpc_SetTaskState (SCR_ETaskState state) |
| void | Rpc_SetTaskOwnership (SCR_ETaskOwnership ownership) |
| void | Rpc_SetTaskVisibility (SCR_ETaskVisibility visibility) |
| void | Rpc_SetTaskUIVisibility (SCR_ETaskUIVisibility visibility) |
| void | Rpc_AddOwnerFactionKey (FactionKey factionKey) |
| void | Rpc_RemoveOwnerFactionKey (FactionKey factionKey) |
| void | Rpc_AddOwnerGroupID (int groupID) |
| void | Rpc_RemoveOwnerGroupID (int groupID) |
| void | AddOwnerExecutor_Proxy (SCR_TaskExecutor executor) |
| void | Rpc_AddOwnerExecutorPlayer (SCR_TaskExecutorPlayer executor) |
| void | Rpc_AddOwnerExecutorEntity (SCR_TaskExecutorEntity executor) |
| void | Rpc_AddOwnerExecutorGroup (SCR_TaskExecutorGroup executor) |
| void | RemoveOwnerExecutor_Proxy (SCR_TaskExecutor executor) |
| void | Rpc_RemoveOwnerExecutorPlayer (SCR_TaskExecutorPlayer executor) |
| void | Rpc_RemoveOwnerExecutorEntity (SCR_TaskExecutorEntity executor) |
| void | Rpc_RemoveOwnerExecutorGroup (SCR_TaskExecutorGroup executor) |
| void | Rpc_SetTaskPosition (vector position) |
| override bool | RplSave (ScriptBitWriter writer) |
| void | WriteUIInfo (ScriptBitWriter writer, SCR_TaskUIInfo info) |
| void | WriteExecutor (ScriptBitWriter writer, SCR_TaskExecutor executor) |
| override bool | RplLoad (ScriptBitReader reader) |
| void | ReadUIInfo (ScriptBitReader reader, out SCR_TaskUIInfo info) |
| void | ReadExecutor (ScriptBitReader reader, out SCR_TaskExecutor executor) |
| void | RemoveUnauthorizedAssignees () |
| Go through assignee list and remove assignees who are not allowed to be assigned to this task. | |
| void | OnFactionChanged (FactionAffiliationComponent owner, Faction previousFaction, Faction newFaction) |
| If faction changed for an assignee, go through assignee list and remove assignees who are no longer allowed to be assigned to this task. | |
| void | OnPlayerFactionChanged (int playerId, SCR_PlayerFactionAffiliationComponent playerFactionAffiliationComponent, Faction faction) |
| void | OnGroupChanged (int groupID) |
| If group changed for an assignee, go through assignee list and remove assignees who are no longer allowed to be assigned to this task. | |
| void | OnGroupRemoved (SCR_AIGroup group) |
| When group is deleted, check if group matches group in task data and reset values. | |
| void | OnPlayerAddedToGroup (SCR_AIGroup group, int playerID) |
| Invoke m_OnDisplayDataChanged to update UI when player joins group. | |
| void | OnPlayerRemovedFromGroup (SCR_AIGroup group, int playerID) |
| Invoke m_OnDisplayDataChanged to update UI when player leaves group. | |
| void | InitializeData () |
| void | ConnectToTaskSystem () |
| void | DisconnectFromTaskSystem () |
Protected Attributes | |
| string | m_sTaskID |
| ref SCR_TaskUIInfo | m_TaskUIInfo |
| SCR_ETaskState | m_eTaskState |
| SCR_ETaskOwnership | m_eTaskOwnership |
| SCR_ETaskVisibility | m_eTaskVisibility |
| SCR_ETaskUIVisibility | m_eTaskUIVisibility |
| ref array< string > | m_aOwnerFactionKeys |
| ref array< int > | m_aOwnerGroupIDs |
| ref array< ref SCR_TaskExecutor > | m_aOwnerExecutors |
| ref array< ref SCR_TaskExecutor > | m_aAssignees |
| ref SCR_TaskData | m_TaskData |
| SCR_TaskSystem | m_TaskSystem |
| SCR_TaskUIComponent | m_UIComponent |
| SCR_EditableEntityComponent | m_EditableEntityComponent |
| ref ScriptInvokerVoid | m_OnDisplayDataChanged |
| ref DebugTextWorldSpace | m_DebugText |
Static Protected Attributes | |
| static ref SCR_TaskStateInvoker | s_OnTaskStateChanged |
| static ref SCR_TaskOwnershipInvoker | s_OnTaskOwnershipChanged |
| static ref SCR_TaskVisibilityInvoker | s_OnTaskVisibilityChanged |
| static ref SCR_TaskUIVisibilityInvoker | s_OnTaskUIVisibilityChanged |
| static ref SCR_TaskExecutorRequesterInvoker | s_OnTaskAssigneeAdded |
| static ref SCR_TaskExecutorRequesterInvoker | s_OnTaskAssigneeRemoved |
| static ref SCR_TaskFactionInvoker | s_OnOwnerFactionAdded |
| static ref SCR_TaskFactionInvoker | s_OnOwnerFactionRemoved |
| static ref SCR_TaskGroupInvoker | s_OnOwnerGroupAdded |
| static ref SCR_TaskGroupInvoker | s_OnOwnerGroupRemoved |
| static ref SCR_TaskExecutorInvoker | s_OnOwnerExecutorAdded |
| static ref SCR_TaskExecutorInvoker | s_OnOwnerExecutorRemoved |
| void SCR_Task.SCR_Task | ( | IEntitySource | src, |
| IEntity | parent ) |
| [in] | src | |
| [in] | parent |
| void SCR_Task.~SCR_Task | ( | ) |
| override void SCR_Task._WB_AfterWorldUpdate | ( | float | timeSlice | ) |
Implemented in SCR_ExtendedTask.
| bool SCR_Task.AddOwnerExecutor | ( | SCR_TaskExecutor | executor | ) |
Tries to add an owner executor to this task.
| [in] | executor |
Implemented in SCR_ExtendedTask.
|
protected |
| void SCR_Task.AddOwnerFactionKey | ( | FactionKey | factionKey | ) |
| [in] | factionKey |
Implemented in SCR_TriggerTask.
| void SCR_Task.AddOwnerGroupID | ( | int | groupID | ) |
| [in] | groupID |
| bool SCR_Task.AddTaskAssignee | ( | SCR_TaskExecutor | executor, |
| bool | listenToInvokers = true, | ||
| int | requesterID = 0 ) |
Tries to add a new assignee to this task.
| [in] | executor | |
| [in] | listenToInvokers | |
| [in] | requesterID |
Implemented in SCR_ExtendedTask.
|
protected |
|
protected |
|
protected |
| override void SCR_Task.EOnInit | ( | IEntity | owner | ) |
Implemented in SCR_AttackTaskEntity, SCR_BuildingCampaignMilitaryBaseTaskEntity, SCR_DismantleCampaignMilitaryBaseTaskEntity, SCR_EditorTask, SCR_EstablishBaseRequestedTaskEntity, SCR_EstablishBaseTaskEntity, SCR_ExtendedTask, SCR_HoldCampaignMilitaryBaseTaskEntity, SCR_MoveTask, SCR_RearmRequestedTaskEntity, SCR_ReconTaskEntity, SCR_ReinforceRequestedTaskEntity, SCR_RepairRequestedTaskEntity, and SCR_TriggerTask.
| int SCR_Task.GetAuthorID | ( | ) |
Returns task author ID.
| ScriptInvokerVoid SCR_Task.GetOnDisplayDataChanged | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| int SCR_Task.GetOwnerExecutorCount | ( | ) |
| array< ref SCR_TaskExecutor > SCR_Task.GetOwnerExecutors | ( | ) |
| int SCR_Task.GetOwnerFactionCount | ( | ) |
| array< string > SCR_Task.GetOwnerFactionKeys | ( | ) |
| int SCR_Task.GetOwnerGroupCount | ( | ) |
| array< int > SCR_Task.GetOwnerGroupIDs | ( | ) |
| int SCR_Task.GetTaskAssigneeCount | ( | ) |
Returns number of assignees for this task.
| int SCR_Task.GetTaskAssigneePlayerCount | ( | bool | recursive = true | ) |
Returns number of assigned players for this task; If recursive is true, it will check assigned groups as well.
| [in] | recursive |
| array< int > SCR_Task.GetTaskAssigneePlayerIDs | ( | ) |
Returns array of player assignees for this task.
| array< ref SCR_TaskExecutor > SCR_Task.GetTaskAssignees | ( | ) |
Returns array of assignees for this task.
| SCR_TaskData SCR_Task.GetTaskData | ( | ) |
Returns task data instance.
| LocalizedString SCR_Task.GetTaskDescription | ( | out array< LocalizedString > | params = null | ) |
Returns description of task.
| [out] | params |
| string SCR_Task.GetTaskIconPath | ( | ) |
Returns task icon path.
| string SCR_Task.GetTaskIconSetName | ( | ) |
Returns name of task icon set.
| string SCR_Task.GetTaskID | ( | ) |
Returns task ID.
| LocalizedString SCR_Task.GetTaskName | ( | out array< LocalizedString > | params = null | ) |
Returns name of task.
| [out] | params |
| SCR_ETaskOwnership SCR_Task.GetTaskOwnership | ( | ) |
| vector SCR_Task.GetTaskPosition | ( | ) |
Returns position of task.
| SCR_ETaskState SCR_Task.GetTaskState | ( | ) |
| SCR_TaskUIInfo SCR_Task.GetTaskUIInfo | ( | ) |
Returns task UI info.
| SCR_ETaskUIVisibility SCR_Task.GetTaskUIVisibility | ( | ) |
| SCR_ETaskVisibility SCR_Task.GetTaskVisibility | ( | ) |
| SCR_TaskUIComponent SCR_Task.GetUIComponent | ( | ) |
|
protected |
Implemented in SCR_BaseRequestedTaskEntity, SCR_CampaignMilitaryBaseTaskEntity, SCR_ExtendedTask, and SCR_ScenarioFrameworkTask.
| bool SCR_Task.IsTaskAssignedTo | ( | SCR_TaskExecutor | executor, |
| out SCR_TaskExecutor | match = null ) |
Returns true if specified executor is assigned to this task and provides matching executor.
| [in] | executor | |
| [out] | match |
|
protected |
If faction changed for an assignee, go through assignee list and remove assignees who are no longer allowed to be assigned to this task.
|
protected |
If group changed for an assignee, go through assignee list and remove assignees who are no longer allowed to be assigned to this task.
|
protected |
When group is deleted, check if group matches group in task data and reset values.
|
protected |
Invoke m_OnDisplayDataChanged to update UI when player joins group.
|
protected |
|
protected |
Invoke m_OnDisplayDataChanged to update UI when player leaves group.
|
protected |
|
protected |
Implemented in SCR_BaseRequestedTaskEntity.
| bool SCR_Task.RemoveOwnerExecutor | ( | SCR_TaskExecutor | executor | ) |
Tries to remove an owner executor from this task.
| [in] | executor |
Implemented in SCR_ExtendedTask.
|
protected |
| void SCR_Task.RemoveOwnerFactionKey | ( | FactionKey | factionKey | ) |
| [in] | factionKey |
| void SCR_Task.RemoveOwnerGroupID | ( | int | groupID | ) |
| [in] | groupID |
| bool SCR_Task.RemoveTaskAssignee | ( | SCR_TaskExecutor | executor, |
| bool | listenToInvokers = true, | ||
| int | requesterID = 0 ) |
Tries to remove an assignee from this task.
| [in] | executor | |
| [in] | listenToInvokers | |
| [in] | requesterID |
Implemented in SCR_ExtendedTask.
|
protected |
|
protected |
Go through assignee list and remove assignees who are not allowed to be assigned to this task.
|
protected |
|
protected |
|
protected |
|
protected |
Implemented in SCR_ExtendedTask.
|
protected |
Implemented in SCR_ExtendedTask.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Implemented in SCR_ExtendedTask.
|
protected |
Implemented in SCR_ExtendedTask.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Implemented in SCR_ExtendedTask.
|
protected |
|
protected |
|
protected |
|
protected |
Implemented in SCR_ExtendedTask.
|
protected |
|
protected |
Implemented in SCR_BaseRequestedTaskEntity, SCR_CampaignMilitaryBaseTaskEntity, SCR_ExtendedTask, and SCR_ScenarioFrameworkTask.
| void SCR_Task.SetAuthorID | ( | int | authorId | ) |
Sets author id of task.
| [in] | taskID |
| void SCR_Task.SetTaskDescription | ( | LocalizedString | taskDesc, |
| array< LocalizedString > | taskDescParams = null ) |
Sets description of task.
| [in] | taskDesc | |
| [in] | taskDescParams |
| void SCR_Task.SetTaskIconPath | ( | ResourceName | iconPath | ) |
Sets task icon path.
| [in] | iconPath |
| void SCR_Task.SetTaskIconSetName | ( | string | iconSetName | ) |
Sets name of task icon set.
| [in] | iconSetName |
| void SCR_Task.SetTaskID | ( | string | taskID | ) |
Sets ID of task.
| [in] | taskID |
| void SCR_Task.SetTaskName | ( | LocalizedString | taskName, |
| array< LocalizedString > | taskNameParams = null ) |
Sets name of task.
| [in] | taskName | |
| [in] | taskNameParams |
| void SCR_Task.SetTaskOwnership | ( | SCR_ETaskOwnership | ownership | ) |
| [in] | ownership |
| void SCR_Task.SetTaskPosition | ( | vector | position | ) |
Sets position of task.
| [in] | position |
| void SCR_Task.SetTaskState | ( | SCR_ETaskState | state | ) |
| [in] | state |
Implemented in SCR_AttackTaskEntity, SCR_CampaignMilitaryBaseTaskEntity, SCR_EditorTask, SCR_ExtendedTask, SCR_HoldCampaignMilitaryBaseTaskEntity, SCR_ReconTaskEntity, SCR_ReinforceRequestedTaskEntity, and SCR_RepairRequestedTaskEntity.
| void SCR_Task.SetTaskUIVisibility | ( | SCR_ETaskUIVisibility | visibility | ) |
| [in] | visibility |
| void SCR_Task.SetTaskVisibility | ( | SCR_ETaskVisibility | visibility | ) |
| [in] | visibility |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |