Arma Reforger Script API
|
Public Member Functions | |
void | OnPlayerDisconnected (int id) |
An event called when a player disconnects Server only. | |
void | OnTaskDeleted (SCR_BaseTask task) |
An event called when a task is deleted. | |
void | OnTaskCreated (SCR_BaseTask task) |
An event called when a new task is created. | |
void | RefreshTaskList (SCR_BaseTask task=null) |
Refresh task list. | |
void | OnTaskFinished (SCR_BaseTask task) |
An event called when a task is finished. | |
void | OnTaskUpdate (SCR_BaseTask task, SCR_ETaskEventMask mask) |
An event called whenever any task has been changed, updated, created. | |
string | GetReassignText () |
void | AddAssigneeAbandoned (SCR_BaseTaskExecutor assignee) |
bool | IsProxy () |
Checks if this entity is locally owned Public because it's also used by tasks as they don't have any RplComponents themselves. | |
void | UnregisterSupportEntity (SCR_BaseTaskSupportEntity supportEntity) |
void | RegisterSupportEntity (SCR_BaseTaskSupportEntity supportEntity) |
SCR_BaseTask | GetTask (int taskID) |
Returns the found task if it exists. | |
void | RegisterTask (SCR_BaseTask task) |
Registers Tasks and based on their State it inserts them to proper list. | |
SCR_BaseTask | GetFinishedTask (int taskID) |
Returns the found finished task if it exists. | |
bool | HasRequestedTask (int playerID) |
bool | Initialized () |
void | DeleteTask (SCR_BaseTask task) |
SCR_BaseTaskSupportEntity | FindSupportEntity (TypeName type) |
array< SCR_BaseTaskSupportEntity > | GetSupportedTasks () |
notnull SCR_BaseTaskExecutor | LocalCreateTaskExecutor (int playerID) |
SCR_RequestedTask | FindRequestedTask (SCR_BaseTaskExecutor requester) |
int | GetFilteredTasks (notnull out array< SCR_BaseTask > tasks, Faction filterFaction=null) |
Outs an array of tasks filtered by faction. | |
int | GetFilteredFinishedTasks (notnull out array< SCR_BaseTask > tasks, Faction filterFaction=null) |
Outs an array of tasks filtered by faction. | |
bool | GetAssigneeAbandoned (SCR_BaseTaskExecutor assignee) |
void | AbandonTask (int taskID, notnull SCR_BaseTaskExecutor assignee) |
void | RequestAssignment (int taskID, notnull SCR_BaseTaskExecutor assignee) |
Used for assigning the task with given task ID to the assignee in parameter. | |
void | OnPlayerRegistered (int registeredPlayerID) |
void | CreateTaskExecutors () |
Creates a task executor for each connected player. | |
float | GetTimestamp () |
Returns the current timestamp. | |
int | GetTasks (notnull out array< SCR_BaseTask > tasks) |
Outs an array of all of the tasks. | |
int | GetFinishedTasks (notnull out array< SCR_BaseTask > tasks) |
Outs an array of all of the finished tasks. | |
SCR_BaseTask | LocalSpawnTask (ResourceName resourceName) |
Called from SpawnTask and RPC_SpawnTask methods Don't call directly! | |
SCR_BaseTask | SpawnTask (ResourceName resourceName) |
Call this on the server only. | |
void | UpdateTasks () |
void | SaveTasksForRpl (ScriptBitWriter writer, array< SCR_BaseTask > taskArray) |
override bool | RplSave (ScriptBitWriter writer) |
void | LoadTasksForRpl (ScriptBitReader reader, int count) |
override bool | RplLoad (ScriptBitReader reader) |
void | SCR_BaseTaskManager (IEntitySource src, IEntity parent) |
void | ~SCR_BaseTaskManager () |
Public Attributes | |
string | m_sLocalRequestTitle |
string | m_sReassignPopup |
string | m_sAssignPopupGM |
ref map< SCR_BaseTask, SCR_ETaskEventMask > | m_mTaskEventMaskMap = new map<SCR_BaseTask, SCR_ETaskEventMask>() |
Static Public Attributes | |
static const float | DEFAULT_ABANDON_WAITING_TIME = 15 |
static ref ScriptInvoker | s_OnTaskUpdate = new ScriptInvoker() |
static ref ScriptInvoker | s_OnTaskFinished = new ScriptInvoker() |
static ref ScriptInvoker | s_OnTaskFailed = new ScriptInvoker() |
static ref ScriptInvoker | s_OnTaskRemoved = new ScriptInvoker() |
static ref ScriptInvoker | s_OnTaskCancelled = new ScriptInvoker() |
static ref ScriptInvoker | s_OnTaskAssigned = new ScriptInvoker() |
static ref ScriptInvoker | s_OnTaskUnassigned = new ScriptInvoker() |
static ref ScriptInvoker | s_OnTaskFactionAssigned = new ScriptInvoker() |
static ref ScriptInvoker | s_OnTaskCreated = new ScriptInvoker() |
static ref ScriptInvoker | s_OnTaskDeleted = new ScriptInvoker() |
static ref ScriptInvoker | s_OnPeriodicalCheck2Second = new ScriptInvoker() |
static ref ScriptInvoker | s_OnPeriodicalCheck5Second = new ScriptInvoker() |
static ref ScriptInvoker | s_OnPeriodicalCheck60Second = new ScriptInvoker() |
Protected Member Functions | |
void | PeriodicalCheck2Second () |
void | PeriodicalCheck5Second () |
void | PeriodicalCheck60Second () |
SCR_EvacuateTask | CreateNewEvacuationTask (int requesterID) |
void | CheckAssigneeTimeout () |
Checks every task for assignee timeout. | |
void | RPC_SpawnTask (ResourceName resourceName, int taskID) |
Called by SpawnTask() Don't call directly! | |
override void | EOnInit (IEntity owner) |
override void | EOnFrame (IEntity owner, float timeSlice) |
Protected Attributes | |
ref array< SCR_BaseTaskSupportEntity > | m_aSupportedTaskTypes = {} |
float | m_fTimestamp = 0 |
float | m_fTimestampTimer = 0 |
ref array< SCR_BaseTask > | m_aTaskList = new array<SCR_BaseTask>() |
ref array< SCR_BaseTask > | m_aFinishedTaskList = {} |
ref array< ref SCR_TaskAssignmentData > | m_aCachedTaskAssignments = new array<ref SCR_TaskAssignmentData>() |
float | m_fAssigneeCacheTimer |
float | m_fAssigneeCacheCheckTimestamp |
ref map< SCR_BaseTaskExecutor, float > | m_mAssigneesAbandoned = new map<SCR_BaseTaskExecutor, float>() |
bool | m_bInitialized = false |
RplComponent | m_RplComponent |
ref array< SCR_BaseTask > | m_aTasksToDelete = {} |
void SCR_BaseTaskManager.SCR_BaseTaskManager | ( | IEntitySource | src, |
IEntity | parent | ||
) |
void SCR_BaseTaskManager.~SCR_BaseTaskManager | ( | ) |
void SCR_BaseTaskManager.AbandonTask | ( | int | taskID, |
notnull SCR_BaseTaskExecutor | assignee | ||
) |
void SCR_BaseTaskManager.AddAssigneeAbandoned | ( | SCR_BaseTaskExecutor | assignee | ) |
|
protected |
Checks every task for assignee timeout.
|
protected |
void SCR_BaseTaskManager.CreateTaskExecutors | ( | ) |
Creates a task executor for each connected player.
void SCR_BaseTaskManager.DeleteTask | ( | SCR_BaseTask | task | ) |
|
protected |
|
protected |
SCR_RequestedTask SCR_BaseTaskManager.FindRequestedTask | ( | SCR_BaseTaskExecutor | requester | ) |
SCR_BaseTaskSupportEntity SCR_BaseTaskManager.FindSupportEntity | ( | TypeName | type | ) |
bool SCR_BaseTaskManager.GetAssigneeAbandoned | ( | SCR_BaseTaskExecutor | assignee | ) |
int SCR_BaseTaskManager.GetFilteredFinishedTasks | ( | notnull out array< SCR_BaseTask > | tasks, |
Faction | filterFaction = null |
||
) |
Outs an array of tasks filtered by faction.
filterFaction param is the allowed faction!
int SCR_BaseTaskManager.GetFilteredTasks | ( | notnull out array< SCR_BaseTask > | tasks, |
Faction | filterFaction = null |
||
) |
Outs an array of tasks filtered by faction.
filterFaction param is the allowed faction!
SCR_BaseTask SCR_BaseTaskManager.GetFinishedTask | ( | int | taskID | ) |
Returns the found finished task if it exists.
int SCR_BaseTaskManager.GetFinishedTasks | ( | notnull out array< SCR_BaseTask > | tasks | ) |
Outs an array of all of the finished tasks.
string SCR_BaseTaskManager.GetReassignText | ( | ) |
array< SCR_BaseTaskSupportEntity > SCR_BaseTaskManager.GetSupportedTasks | ( | ) |
SCR_BaseTask SCR_BaseTaskManager.GetTask | ( | int | taskID | ) |
Returns the found task if it exists.
int SCR_BaseTaskManager.GetTasks | ( | notnull out array< SCR_BaseTask > | tasks | ) |
Outs an array of all of the tasks.
float SCR_BaseTaskManager.GetTimestamp | ( | ) |
Returns the current timestamp.
bool SCR_BaseTaskManager.HasRequestedTask | ( | int | playerID | ) |
bool SCR_BaseTaskManager.Initialized | ( | ) |
bool SCR_BaseTaskManager.IsProxy | ( | ) |
Checks if this entity is locally owned Public because it's also used by tasks as they don't have any RplComponents themselves.
void SCR_BaseTaskManager.LoadTasksForRpl | ( | ScriptBitReader | reader, |
int | count | ||
) |
notnull SCR_BaseTaskExecutor SCR_BaseTaskManager.LocalCreateTaskExecutor | ( | int | playerID | ) |
SCR_BaseTask SCR_BaseTaskManager.LocalSpawnTask | ( | ResourceName | resourceName | ) |
Called from SpawnTask and RPC_SpawnTask methods Don't call directly!
void SCR_BaseTaskManager.OnPlayerDisconnected | ( | int | id | ) |
An event called when a player disconnects Server only.
void SCR_BaseTaskManager.OnPlayerRegistered | ( | int | registeredPlayerID | ) |
void SCR_BaseTaskManager.OnTaskCreated | ( | SCR_BaseTask | task | ) |
An event called when a new task is created.
void SCR_BaseTaskManager.OnTaskDeleted | ( | SCR_BaseTask | task | ) |
An event called when a task is deleted.
void SCR_BaseTaskManager.OnTaskFinished | ( | SCR_BaseTask | task | ) |
An event called when a task is finished.
void SCR_BaseTaskManager.OnTaskUpdate | ( | SCR_BaseTask | task, |
SCR_ETaskEventMask | mask | ||
) |
An event called whenever any task has been changed, updated, created.
|
protected |
|
protected |
|
protected |
void SCR_BaseTaskManager.RefreshTaskList | ( | SCR_BaseTask | task = null | ) |
Refresh task list.
void SCR_BaseTaskManager.RegisterSupportEntity | ( | SCR_BaseTaskSupportEntity | supportEntity | ) |
void SCR_BaseTaskManager.RegisterTask | ( | SCR_BaseTask | task | ) |
Registers Tasks and based on their State it inserts them to proper list.
void SCR_BaseTaskManager.RequestAssignment | ( | int | taskID, |
notnull SCR_BaseTaskExecutor | assignee | ||
) |
Used for assigning the task with given task ID to the assignee in parameter.
|
protected |
Called by SpawnTask() Don't call directly!
override bool SCR_BaseTaskManager.RplLoad | ( | ScriptBitReader | reader | ) |
override bool SCR_BaseTaskManager.RplSave | ( | ScriptBitWriter | writer | ) |
void SCR_BaseTaskManager.SaveTasksForRpl | ( | ScriptBitWriter | writer, |
array< SCR_BaseTask > | taskArray | ||
) |
SCR_BaseTask SCR_BaseTaskManager.SpawnTask | ( | ResourceName | resourceName | ) |
Call this on the server only.
void SCR_BaseTaskManager.UnregisterSupportEntity | ( | SCR_BaseTaskSupportEntity | supportEntity | ) |
void SCR_BaseTaskManager.UpdateTasks | ( | ) |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
ref map<SCR_BaseTask, SCR_ETaskEventMask> SCR_BaseTaskManager.m_mTaskEventMaskMap = new map<SCR_BaseTask, SCR_ETaskEventMask>() |
|
protected |
string SCR_BaseTaskManager.m_sAssignPopupGM |
string SCR_BaseTaskManager.m_sLocalRequestTitle |
string SCR_BaseTaskManager.m_sReassignPopup |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |