Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_TransportUnitComponent Interface Reference
Inheritance diagram for SCR_TransportUnitComponent:

Public Member Functions

SCR_VehicleConditionManager GetVehicleConditionManager ()
 
ScriptInvokerInt GetOnResupplyTaskSolverStateChanged ()
 
OnTransportUnitVehicleChangedInvoker GetOnVehicleChanged ()
 
ScriptInvokerInt GetOnStateChanged ()
 
EntityID GetID ()
 
Faction GetFaction ()
 
SCR_ResupplyTaskSolver GetSolver ()
 
string GetName ()
 
SCR_CampaignMilitaryBaseComponent GetSourceBase ()
 
string GetDestinationName ()
 
void SetSourceBase (SCR_CampaignMilitaryBaseComponent sourceBase)
 
void SetSuppliedBase (SCR_CampaignMilitaryBaseComponent suppliedBase)
 
void SelectForTaskSolving (SCR_ResupplyCampaignMilitaryBaseTaskEntity task)
 
Vehicle GetVehicle ()
 
bool IsVehicleUsable ()
 
SCR_AIGroup GetAIGroup ()
 
SCR_ETransportUnitState GetState ()
 
SCR_EResupplyTaskSolverState GetResupplyTaskSolverState ()
 
bool IsReadyForTaskSolving ()
 
void Update (float timeSlice)
 
void ReturnToSourceBaseIfNeeded ()
 
SCR_ResupplyCampaignMilitaryBaseTaskEntity GetPreferableResupplyTask ()
 
void CreateMoveWaypointToSourceBase ()
 
override void EOnInit (IEntity owner)
 
override void OnPostInit (IEntity owner)
 
override void OnDelete (IEntity owner)
 

Protected Member Functions

void OnBoardingCompleted (AIWaypoint waypoint)
 
void OnMoveToSourceBaseWaypointCompleted (AIWaypoint waypoint)
 
void TeleportGroupToVehicle ()
 
void OnPreferableResupplyTaskSet ()
 Called upon the m_PreferableResupplyTaskRplId replication.
 
void SetPreferableResupplyTask (SCR_ResupplyCampaignMilitaryBaseTaskEntity preferableTask)
 
void SetTruckFuel (float percentage)
 
void OnVehicleRplIdSet ()
 Called upon the m_VehicleRplId replication and set the vehicle from the server.
 
void SetVehicle (Vehicle vehicle)
 
void UpdateGarbageBlacklist (notnull Vehicle vehicle, bool blacklisted)
 
void SetState (SCR_ETransportUnitState state)
 
void OnSourceBaseCallsignSet ()
 Called upon the m_iSourceBaseCallsign replication and set the correct base from the server.
 
void OnDestinationCallsignSet ()
 
void UpdateState ()
 
void OnResupplyTaskSolverStateChanged (int solverId, SCR_EResupplyTaskSolverState resupplyTaskSolverState)
 
void OnTaskSolverStateChanged (SCR_TaskSolverBase taskSolver, SCR_ETaskSolverState taskSolverState)
 
SCR_BoardingEntityWaypoint CreateBoardingVehicleWaypoint ()
 
SCR_TransportUnitHelpTaskEntity CreateTransportUnitHelpTask ()
 
bool HasTransportUnitHelpTask (notnull SCR_Faction faction)
 
Vehicle FindVehicle ()
 
Vehicle GetClosestVehicle ()
 
bool FilterVehicles (IEntity entity)
 
bool QuerySupplyTrucks (IEntity entity)
 
SCR_ResupplyCampaignMilitaryBaseTaskEntity SelectPreferableResupplyTask ()
 
void SetSourceBaseFromEntityName ()
 
void SendTransportGroupLostNotificationToCommander ()
 

Static Protected Member Functions

static int GenerateTaskID ()
 

Protected Attributes

string m_sSourceBaseEntityName
 
float m_fSearchTruckRadius
 
bool m_bTeleportGroupToVehicle
 
LocalizedString m_sNoDestinationLocalizationKey
 
ResourceName m_sTransportUnitHelpTask
 
SCR_ETransportUnitState m_eState
 
int m_iSourceBaseCallsign = SCR_MilitaryBaseComponent.INVALID_BASE_CALLSIGN
 
int m_iSuppliedBaseCallsign = SCR_CampaignMilitaryBaseComponent.INVALID_BASE_CALLSIGN
 
RplId m_VehicleRplId = RplId.Invalid()
 
RplId m_PreferableResupplyTaskRplId = RplId.Invalid()
 
SCR_AIGroup m_AIGroup
 
SCR_ResupplyCampaignMilitaryBaseTaskEntity m_PreferableResupplyTask
 
ref set< Vehiclem_NearbySupplyTrucks = new set<Vehicle>()
 
SCR_SuppliesTransportSystem m_SuppliesTransportSystem
 
SCR_TaskSolverManagerComponent m_TaskSolverManager
 
SCR_CampaignMilitaryBaseComponent m_SourceBase
 
SCR_CampaignMilitaryBaseComponent m_SuppliedBase
 
Vehicle m_Vehicle
 
SCR_FuelManagerComponent m_FuelManager
 
SCR_ResupplyTaskSolver m_TaskSolver
 
SCR_VehicleConditionManager m_VehicleConditionManager
 
SCR_AIGroupConditionManager m_AiGroupConditionManager
 
SCR_TaskSystem m_TaskSystem
 
SCR_TransportUnitHelpTaskEntity m_TransportUnitHelpTaskEntity
 
SCR_BoardingEntityWaypoint m_BoardingWaypoint
 
SCR_AIWaypoint m_MoveToSourceBaseWaypoint
 
ref ScriptInvokerInt m_OnStateChanged
 
ref OnTransportUnitVehicleChangedInvoker m_OnVehicleChanged
 
ref ScriptInvokerInt m_OnResupplyTaskSolverStateChanged
 

Static Protected Attributes

static int s_iLastGeneratedTaskId
 
static const string TRANSPORT_UNIT_HELP_TASK_ID = "%1_TransportUnitHelpTask_%2"
 

Member Function Documentation

◆ CreateBoardingVehicleWaypoint()

SCR_BoardingEntityWaypoint SCR_TransportUnitComponent.CreateBoardingVehicleWaypoint ( )
protected

◆ CreateMoveWaypointToSourceBase()

void SCR_TransportUnitComponent.CreateMoveWaypointToSourceBase ( )

◆ CreateTransportUnitHelpTask()

SCR_TransportUnitHelpTaskEntity SCR_TransportUnitComponent.CreateTransportUnitHelpTask ( )
protected

◆ EOnInit()

override void SCR_TransportUnitComponent.EOnInit ( IEntity owner)

◆ FilterVehicles()

bool SCR_TransportUnitComponent.FilterVehicles ( IEntity entity)
protected

◆ FindVehicle()

Vehicle SCR_TransportUnitComponent.FindVehicle ( )
protected

◆ GenerateTaskID()

static int SCR_TransportUnitComponent.GenerateTaskID ( )
staticprotected

◆ GetAIGroup()

SCR_AIGroup SCR_TransportUnitComponent.GetAIGroup ( )

◆ GetClosestVehicle()

Vehicle SCR_TransportUnitComponent.GetClosestVehicle ( )
protected

◆ GetDestinationName()

string SCR_TransportUnitComponent.GetDestinationName ( )

◆ GetFaction()

Faction SCR_TransportUnitComponent.GetFaction ( )

◆ GetID()

EntityID SCR_TransportUnitComponent.GetID ( )

◆ GetName()

string SCR_TransportUnitComponent.GetName ( )

◆ GetOnResupplyTaskSolverStateChanged()

ScriptInvokerInt SCR_TransportUnitComponent.GetOnResupplyTaskSolverStateChanged ( )

◆ GetOnStateChanged()

ScriptInvokerInt SCR_TransportUnitComponent.GetOnStateChanged ( )

◆ GetOnVehicleChanged()

OnTransportUnitVehicleChangedInvoker SCR_TransportUnitComponent.GetOnVehicleChanged ( )

◆ GetPreferableResupplyTask()

SCR_ResupplyCampaignMilitaryBaseTaskEntity SCR_TransportUnitComponent.GetPreferableResupplyTask ( )

◆ GetResupplyTaskSolverState()

SCR_EResupplyTaskSolverState SCR_TransportUnitComponent.GetResupplyTaskSolverState ( )

◆ GetSolver()

SCR_ResupplyTaskSolver SCR_TransportUnitComponent.GetSolver ( )

◆ GetSourceBase()

SCR_CampaignMilitaryBaseComponent SCR_TransportUnitComponent.GetSourceBase ( )

◆ GetState()

SCR_ETransportUnitState SCR_TransportUnitComponent.GetState ( )

◆ GetVehicle()

Vehicle SCR_TransportUnitComponent.GetVehicle ( )

◆ GetVehicleConditionManager()

SCR_VehicleConditionManager SCR_TransportUnitComponent.GetVehicleConditionManager ( )

◆ HasTransportUnitHelpTask()

bool SCR_TransportUnitComponent.HasTransportUnitHelpTask ( notnull SCR_Faction faction)
protected

◆ IsReadyForTaskSolving()

bool SCR_TransportUnitComponent.IsReadyForTaskSolving ( )

◆ IsVehicleUsable()

bool SCR_TransportUnitComponent.IsVehicleUsable ( )

◆ OnBoardingCompleted()

void SCR_TransportUnitComponent.OnBoardingCompleted ( AIWaypoint waypoint)
protected

◆ OnDelete()

override void SCR_TransportUnitComponent.OnDelete ( IEntity owner)

◆ OnDestinationCallsignSet()

void SCR_TransportUnitComponent.OnDestinationCallsignSet ( )
protected

◆ OnMoveToSourceBaseWaypointCompleted()

void SCR_TransportUnitComponent.OnMoveToSourceBaseWaypointCompleted ( AIWaypoint waypoint)
protected

◆ OnPostInit()

override void SCR_TransportUnitComponent.OnPostInit ( IEntity owner)

◆ OnPreferableResupplyTaskSet()

void SCR_TransportUnitComponent.OnPreferableResupplyTaskSet ( )
protected

Called upon the m_PreferableResupplyTaskRplId replication.

◆ OnResupplyTaskSolverStateChanged()

void SCR_TransportUnitComponent.OnResupplyTaskSolverStateChanged ( int solverId,
SCR_EResupplyTaskSolverState resupplyTaskSolverState )
protected

◆ OnSourceBaseCallsignSet()

void SCR_TransportUnitComponent.OnSourceBaseCallsignSet ( )
protected

Called upon the m_iSourceBaseCallsign replication and set the correct base from the server.

◆ OnTaskSolverStateChanged()

void SCR_TransportUnitComponent.OnTaskSolverStateChanged ( SCR_TaskSolverBase taskSolver,
SCR_ETaskSolverState taskSolverState )
protected

◆ OnVehicleRplIdSet()

void SCR_TransportUnitComponent.OnVehicleRplIdSet ( )
protected

Called upon the m_VehicleRplId replication and set the vehicle from the server.

◆ QuerySupplyTrucks()

bool SCR_TransportUnitComponent.QuerySupplyTrucks ( IEntity entity)
protected

◆ ReturnToSourceBaseIfNeeded()

void SCR_TransportUnitComponent.ReturnToSourceBaseIfNeeded ( )

◆ SelectForTaskSolving()

void SCR_TransportUnitComponent.SelectForTaskSolving ( SCR_ResupplyCampaignMilitaryBaseTaskEntity task)

◆ SelectPreferableResupplyTask()

SCR_ResupplyCampaignMilitaryBaseTaskEntity SCR_TransportUnitComponent.SelectPreferableResupplyTask ( )
protected

◆ SendTransportGroupLostNotificationToCommander()

void SCR_TransportUnitComponent.SendTransportGroupLostNotificationToCommander ( )
protected

◆ SetPreferableResupplyTask()

void SCR_TransportUnitComponent.SetPreferableResupplyTask ( SCR_ResupplyCampaignMilitaryBaseTaskEntity preferableTask)
protected

◆ SetSourceBase()

void SCR_TransportUnitComponent.SetSourceBase ( SCR_CampaignMilitaryBaseComponent sourceBase)

◆ SetSourceBaseFromEntityName()

void SCR_TransportUnitComponent.SetSourceBaseFromEntityName ( )
protected

◆ SetState()

void SCR_TransportUnitComponent.SetState ( SCR_ETransportUnitState state)
protected

◆ SetSuppliedBase()

void SCR_TransportUnitComponent.SetSuppliedBase ( SCR_CampaignMilitaryBaseComponent suppliedBase)

◆ SetTruckFuel()

void SCR_TransportUnitComponent.SetTruckFuel ( float percentage)
protected

◆ SetVehicle()

void SCR_TransportUnitComponent.SetVehicle ( Vehicle vehicle)
protected

◆ TeleportGroupToVehicle()

void SCR_TransportUnitComponent.TeleportGroupToVehicle ( )
protected

◆ Update()

void SCR_TransportUnitComponent.Update ( float timeSlice)

◆ UpdateGarbageBlacklist()

void SCR_TransportUnitComponent.UpdateGarbageBlacklist ( notnull Vehicle vehicle,
bool blacklisted )
protected

◆ UpdateState()

void SCR_TransportUnitComponent.UpdateState ( )
protected

Member Data Documentation

◆ m_AIGroup

SCR_AIGroup SCR_TransportUnitComponent.m_AIGroup
protected

◆ m_AiGroupConditionManager

SCR_AIGroupConditionManager SCR_TransportUnitComponent.m_AiGroupConditionManager
protected

◆ m_BoardingWaypoint

SCR_BoardingEntityWaypoint SCR_TransportUnitComponent.m_BoardingWaypoint
protected

◆ m_bTeleportGroupToVehicle

bool SCR_TransportUnitComponent.m_bTeleportGroupToVehicle
protected

◆ m_eState

SCR_ETransportUnitState SCR_TransportUnitComponent.m_eState
protected

◆ m_fSearchTruckRadius

float SCR_TransportUnitComponent.m_fSearchTruckRadius
protected

◆ m_FuelManager

SCR_FuelManagerComponent SCR_TransportUnitComponent.m_FuelManager
protected

◆ m_iSourceBaseCallsign

int SCR_TransportUnitComponent.m_iSourceBaseCallsign = SCR_MilitaryBaseComponent.INVALID_BASE_CALLSIGN
protected

◆ m_iSuppliedBaseCallsign

int SCR_TransportUnitComponent.m_iSuppliedBaseCallsign = SCR_CampaignMilitaryBaseComponent.INVALID_BASE_CALLSIGN
protected

◆ m_MoveToSourceBaseWaypoint

SCR_AIWaypoint SCR_TransportUnitComponent.m_MoveToSourceBaseWaypoint
protected

◆ m_NearbySupplyTrucks

ref set<Vehicle> SCR_TransportUnitComponent.m_NearbySupplyTrucks = new set<Vehicle>()
protected

◆ m_OnResupplyTaskSolverStateChanged

ref ScriptInvokerInt SCR_TransportUnitComponent.m_OnResupplyTaskSolverStateChanged
protected

◆ m_OnStateChanged

ref ScriptInvokerInt SCR_TransportUnitComponent.m_OnStateChanged
protected

◆ m_OnVehicleChanged

ref OnTransportUnitVehicleChangedInvoker SCR_TransportUnitComponent.m_OnVehicleChanged
protected

◆ m_PreferableResupplyTask

SCR_ResupplyCampaignMilitaryBaseTaskEntity SCR_TransportUnitComponent.m_PreferableResupplyTask
protected

◆ m_PreferableResupplyTaskRplId

RplId SCR_TransportUnitComponent.m_PreferableResupplyTaskRplId = RplId.Invalid()
protected

◆ m_sNoDestinationLocalizationKey

LocalizedString SCR_TransportUnitComponent.m_sNoDestinationLocalizationKey
protected

◆ m_SourceBase

SCR_CampaignMilitaryBaseComponent SCR_TransportUnitComponent.m_SourceBase
protected

◆ m_sSourceBaseEntityName

string SCR_TransportUnitComponent.m_sSourceBaseEntityName
protected

◆ m_sTransportUnitHelpTask

ResourceName SCR_TransportUnitComponent.m_sTransportUnitHelpTask
protected

◆ m_SuppliedBase

SCR_CampaignMilitaryBaseComponent SCR_TransportUnitComponent.m_SuppliedBase
protected

◆ m_SuppliesTransportSystem

SCR_SuppliesTransportSystem SCR_TransportUnitComponent.m_SuppliesTransportSystem
protected

◆ m_TaskSolver

SCR_ResupplyTaskSolver SCR_TransportUnitComponent.m_TaskSolver
protected

◆ m_TaskSolverManager

SCR_TaskSolverManagerComponent SCR_TransportUnitComponent.m_TaskSolverManager
protected

◆ m_TaskSystem

SCR_TaskSystem SCR_TransportUnitComponent.m_TaskSystem
protected

◆ m_TransportUnitHelpTaskEntity

SCR_TransportUnitHelpTaskEntity SCR_TransportUnitComponent.m_TransportUnitHelpTaskEntity
protected

◆ m_Vehicle

Vehicle SCR_TransportUnitComponent.m_Vehicle
protected

◆ m_VehicleConditionManager

SCR_VehicleConditionManager SCR_TransportUnitComponent.m_VehicleConditionManager
protected

◆ m_VehicleRplId

RplId SCR_TransportUnitComponent.m_VehicleRplId = RplId.Invalid()
protected

◆ s_iLastGeneratedTaskId

int SCR_TransportUnitComponent.s_iLastGeneratedTaskId
staticprotected

◆ TRANSPORT_UNIT_HELP_TASK_ID

const string SCR_TransportUnitComponent.TRANSPORT_UNIT_HELP_TASK_ID = "%1_TransportUnitHelpTask_%2"
staticprotected

The documentation for this interface was generated from the following file: