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

Go to the source code of this file.

Data Structures

class  SCR_TaskNetworkComponentClass
 

Functions

void CancelTask (int taskID)
 
void AbandonTask (int taskID)
 
void RequestAssignment (int taskID)
 
void AssignTaskToPlayer (int gmID, int taskID, int playerID)
 
protected void RPC_AssignTaskToPlayer (int gmID, int taskID, int playerID)
 
protected void RPC_CancelTask (int taskID)
 
protected void RPC_AbandonTask (int taskID, int playerID)
 
protected void RPC_RequestAssignment (int taskID, int playerID)
 
override void EOnInit (IEntity owner)
 
override void OnPostInit (IEntity owner)
 Called on PostInit when all components are added. More...
 
void SCR_TaskNetworkComponent (IEntityComponentSource src, IEntity ent, IEntity parent)
 

Variables

SCR_TaskNetworkComponentClass INVALID_PLAYER_ID = -1
 Takes care of tasks-specific server <> client communication and requests. More...
 
protected SCR_PlayerController m_PlayerController
 
protected RplComponent m_RplComponent
 

Function Documentation

◆ AbandonTask()

void AbandonTask ( int  taskID)

Allows the local player to abandon a task assigned to them.

Parameters
[in]taskID

Definition at line 30 of file SCR_TaskNetworkComponent.c.

◆ AssignTaskToPlayer()

void AssignTaskToPlayer ( int  gmID,
int  taskID,
int  playerID 
)
Parameters
[in]gmID
[in]taskID
[in]playerID

Definition at line 78 of file SCR_TaskNetworkComponent.c.

◆ CancelTask()

void CancelTask ( int  taskID)

Allows the requester to cancel a task requested by them.

Parameters
[in]taskID

Definition at line 22 of file SCR_TaskNetworkComponent.c.

◆ RequestAssignment()

void RequestAssignment ( int  taskID)

Allows the local player to request assignment to a task.

Parameters
[in]taskID

Definition at line 53 of file SCR_TaskNetworkComponent.c.

◆ RPC_AbandonTask()

protected void RPC_AbandonTask ( int  taskID,
int  playerID 
)

An RPC executed on the server, tells task manager to abandon given task by given player

Parameters
[in]taskID
[in]playerID

Definition at line 149 of file SCR_TaskNetworkComponent.c.

◆ RPC_AssignTaskToPlayer()

protected void RPC_AssignTaskToPlayer ( int  gmID,
int  taskID,
int  playerID 
)

Definition at line 92 of file SCR_TaskNetworkComponent.c.

◆ RPC_CancelTask()

protected void RPC_CancelTask ( int  taskID)

An RPC executed on the server, tells task manager to cancel given task by given player

Parameters
[in]taskID

Definition at line 134 of file SCR_TaskNetworkComponent.c.

◆ RPC_RequestAssignment()

protected void RPC_RequestAssignment ( int  taskID,
int  playerID 
)

An RPC executed on the server, tells task manager to assign given task to given player

Parameters
[in]taskID
[in]playerID

Definition at line 169 of file SCR_TaskNetworkComponent.c.

◆ SCR_TaskNetworkComponent()

void SCR_TaskNetworkComponent ( IEntityComponentSource  src,
IEntity  ent,
IEntity  parent 
)

Definition at line 207 of file SCR_TaskNetworkComponent.c.

Variable Documentation

◆ INVALID_PLAYER_ID

SCR_TaskNetworkComponentClass INVALID_PLAYER_ID = -1

Takes care of tasks-specific server <> client communication and requests.

◆ m_PlayerController

protected SCR_PlayerController m_PlayerController

Definition at line 12 of file SCR_TaskNetworkComponent.c.

◆ m_RplComponent

protected RplComponent m_RplComponent

Definition at line 13 of file SCR_TaskNetworkComponent.c.