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

Go to the source code of this file.

Classes

class  SCR_TaskSolverManagerComponentClass

Functions

SCR_TaskSolverManagerComponentClass SCR_BaseGameModeComponentClass Attribute ()] protected ref SCR_TaskSolverConfig m_TaskSolverConfig
SCR_TaskSolverBase CreateSolver (typename solverType)
void StartSolverTask (SCR_TaskSolverBase solver, SCR_Task task, SCR_TaskSolverContext context)
void RemoveSolver (notnull SCR_TaskSolverBase solver)
SCR_TaskSolverEntry GetTaskSolverEntry (typename type)
void Update (float timeSlice)
 Updates all solvers.
bool IsMaster ()
void OnResupplyTaskSolverStateChanged (int solverId, SCR_EResupplyTaskSolverState resupplyTaskSolverState)
void RpcDo_SetResupplyTaskSolverState (int solverId, SCR_EResupplyTaskSolverState resupplyTaskSolverState)
SCR_TaskSolverBase Find (int solverId)
SCR_TaskSolverBase Find (notnull SCR_Task task)
void SetSolverEntry (SCR_TaskSolverBase solver)
 Configures the solver with entries/config as needed.
void OnPostInit (IEntity owner)
 Editable Mine.
void OnDelete (IEntity owner)
 Cleans up all solvers on delete.

Variables

ref array< ref SCR_TaskSolverBasem_aActiveSolvers = {}
RplComponent m_RplComponent

Function Documentation

◆ CreateSolver()

SCR_TaskSolverBase CreateSolver ( typename solverType )
protected

Creates, configures, and registers a new solver.

Parameters
[in]solverTypeThe solver typename.
Returns
The created solver or null if failed.

Definition at line 21 of file SCR_TaskSolverManagerComponent.c.

◆ Find() [1/2]

SCR_TaskSolverBase Find ( int solverId)
protected

Definition at line 120 of file SCR_TaskSolverManagerComponent.c.

◆ Find() [2/2]

SCR_TaskSolverBase Find ( notnull SCR_Task task)
protected

Finds a solver associated with a task (linear search).

Parameters
[in]taskThe task to search for.
Returns
The solver or null if not found.

Definition at line 135 of file SCR_TaskSolverManagerComponent.c.

◆ GetTaskSolverEntry()

SCR_TaskSolverEntry GetTaskSolverEntry ( typename type )
protected

Returns the task solver entry for the given type

Parameters
[in]typeThe type of the requested task solver entry.

Definition at line 78 of file SCR_TaskSolverManagerComponent.c.

◆ OnDelete()

void OnDelete ( IEntity owner)
protected

Cleans up all solvers on delete.

Definition at line 177 of file SCR_TaskSolverManagerComponent.c.

◆ OnResupplyTaskSolverStateChanged()

void OnResupplyTaskSolverStateChanged ( int solverId,
SCR_EResupplyTaskSolverState resupplyTaskSolverState )
protected

Definition at line 103 of file SCR_TaskSolverManagerComponent.c.

◆ RemoveSolver()

void RemoveSolver ( notnull SCR_TaskSolverBase solver)
protected

Removes and cleans up a solver.

Parameters
[in]solverThe solver to remove.

Definition at line 65 of file SCR_TaskSolverManagerComponent.c.

◆ RpcDo_SetResupplyTaskSolverState()

void RpcDo_SetResupplyTaskSolverState ( int solverId,
SCR_EResupplyTaskSolverState resupplyTaskSolverState )
protected

Definition at line 110 of file SCR_TaskSolverManagerComponent.c.

◆ SetSolverEntry()

void SetSolverEntry ( SCR_TaskSolverBase solver)
protected

Configures the solver with entries/config as needed.

Definition at line 148 of file SCR_TaskSolverManagerComponent.c.

◆ StartSolverTask()

void StartSolverTask ( SCR_TaskSolverBase solver,
SCR_Task task,
SCR_TaskSolverContext context )
protected

Starts and injects task/context into the given solver.

Parameters
[in]solverThe solver to initialize and start.
[in]taskThe task to inject.
[in]contextThe context.

Definition at line 52 of file SCR_TaskSolverManagerComponent.c.

◆ Update()

void Update ( float timeSlice)
protected

Updates all solvers.

Parameters
[in]timeSlice

Definition at line 88 of file SCR_TaskSolverManagerComponent.c.

Variable Documentation

◆ m_aActiveSolvers

ref array<ref SCR_TaskSolverBase> m_aActiveSolvers = {}
protected

Definition at line 11 of file SCR_TaskSolverManagerComponent.c.

◆ m_RplComponent

RplComponent m_RplComponent
protected

Definition at line 13 of file SCR_TaskSolverManagerComponent.c.