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

Go to the source code of this file.

Data Structures

class  SCR_FuelSupportStationComponentClass
 

Functions

SCR_FuelSupportStationComponentClass SCR_BaseSupportStationComponentClass Attribute (defvalue:EFuelFlowCapacityOut.FUEL_CARGO.ToString(), uiwidget:UIWidgets.SearchComboBox, desc:"Maximum Flow Capacity (per minute). Is only used if entity does not have a Fuelmanager with Nodes as scripted fuel nodes have the max flow assigned", enums:ParamEnumArray.FromEnum(EFuelFlowCapacityOut), category:"Fuel Support Station Only")] protected EFuelFlowCapacityOut m_BackupMaxFlowCapacity
 
SCR_AudioSourceConfiguration GetOnUpdateAudioConfig ()
 
protected override void DelayedInit (IEntity owner)
 
override bool IsValid (IEntity actionOwner, IEntity actionUser, SCR_BaseUseSupportStationAction action, vector actionPosition, out ESupportStationReasonInvalid reasonInvalid, out int supplyCost)
 
override ESupportStationType GetSupportStationType ()
 
protected void OnFuelAddedToVehicleServer (float fuelAmount, SCR_FuelNode nodeUsedForRefuel)
 
protected void GetFuelNodeInfo (out float maxFlowCapacity, out SCR_FuelNode nodeUsedForRefuel, float actionDuration)
 
override void OnExecutedServer (notnull IEntity actionOwner, notnull IEntity actionUser, notnull SCR_BaseUseSupportStationAction action)
 
protected void OnExecuteFuelBroadcast (RplId ownerId, RplId userId, int userPlayerId, float fuelTankFillPercentage, bool currentTankFull, int actionId)
 
protected void OnExecuteFuel (IEntity actionOwner, IEntity actionUser, int playerId, float fuelPercentage, bool currentTankFull, SCR_BaseUseSupportStationAction action)
 
protected override void OnExecute (IEntity actionOwner, IEntity actionUser, int playerId, SCR_BaseUseSupportStationAction action)
 
protected void PlayRefuelUpdateSound (IEntity actionOwner, SCR_BaseUseSupportStationAction action)
 

Variables

protected string m_sOnUpdateSoundEffectEventName
 
protected ref SCR_AudioSourceConfiguration m_OnUpdateAudioSourceConfiguration
 
protected ESupportStationReasonInvalid m_EmptyInvalidReason
 
protected SCR_FuelManagerComponent m_SupportStationFuelManager
 

Function Documentation

◆ Attribute()

SCR_FuelSupportStationComponentClass SCR_BaseSupportStationComponentClass Attribute ( defvalue:EFuelFlowCapacityOut.FUEL_CARGO.  ToString(),
uiwidget:UIWidgets.  SearchComboBox,
desc:"Maximum Flow Capacity (per minute). Is only used if entity does not have a Fuelmanager with Nodes as scripted fuel nodes have the max flow assigned"  ,
enums:ParamEnumArray.  FromEnumEFuelFlowCapacityOut,
category:"Fuel Support Station Only"   
)

◆ DelayedInit()

protected override void DelayedInit ( IEntity  owner)

Definition at line 46 of file SCR_FuelSupportStationComponent.c.

◆ GetFuelNodeInfo()

protected void GetFuelNodeInfo ( out float  maxFlowCapacity,
out SCR_FuelNode  nodeUsedForRefuel,
float  actionDuration 
)

Definition at line 92 of file SCR_FuelSupportStationComponent.c.

◆ GetOnUpdateAudioConfig()

SCR_AudioSourceConfiguration Attribute::GetOnUpdateAudioConfig ( )

Get Audio config to play Will create it if it not yet exists. Returns null if no SoundFile or SoundEvent is set

Returns
Sound Config

Definition at line 11 of file SCR_FuelSupportStationComponent.c.

◆ GetSupportStationType()

override ESupportStationType GetSupportStationType ( )

Definition at line 73 of file SCR_FuelSupportStationComponent.c.

◆ IsValid()

override bool IsValid ( IEntity  actionOwner,
IEntity  actionUser,
SCR_BaseUseSupportStationAction  action,
vector  actionPosition,
out ESupportStationReasonInvalid  reasonInvalid,
out int  supplyCost 
)

Definition at line 57 of file SCR_FuelSupportStationComponent.c.

◆ OnExecute()

protected override void OnExecute ( IEntity  actionOwner,
IEntity  actionUser,
int  playerId,
SCR_BaseUseSupportStationAction  action 
)

Definition at line 341 of file SCR_FuelSupportStationComponent.c.

◆ OnExecutedServer()

override void OnExecutedServer ( notnull IEntity  actionOwner,
notnull IEntity  actionUser,
notnull SCR_BaseUseSupportStationAction  action 
)

Definition at line 135 of file SCR_FuelSupportStationComponent.c.

◆ OnExecuteFuel()

protected void OnExecuteFuel ( IEntity  actionOwner,
IEntity  actionUser,
int  playerId,
float  fuelPercentage,
bool  currentTankFull,
SCR_BaseUseSupportStationAction  action 
)

Definition at line 287 of file SCR_FuelSupportStationComponent.c.

◆ OnExecuteFuelBroadcast()

protected void OnExecuteFuelBroadcast ( RplId  ownerId,
RplId  userId,
int  userPlayerId,
float  fuelTankFillPercentage,
bool  currentTankFull,
int  actionId 
)

Definition at line 269 of file SCR_FuelSupportStationComponent.c.

◆ OnFuelAddedToVehicleServer()

protected void OnFuelAddedToVehicleServer ( float  fuelAmount,
SCR_FuelNode  nodeUsedForRefuel 
)

Definition at line 80 of file SCR_FuelSupportStationComponent.c.

◆ PlayRefuelUpdateSound()

protected void PlayRefuelUpdateSound ( IEntity  actionOwner,
SCR_BaseUseSupportStationAction  action 
)

Definition at line 348 of file SCR_FuelSupportStationComponent.c.

Variable Documentation

◆ m_EmptyInvalidReason

protected ESupportStationReasonInvalid m_EmptyInvalidReason

Definition at line 41 of file SCR_FuelSupportStationComponent.c.

◆ m_OnUpdateAudioSourceConfiguration

protected ref SCR_AudioSourceConfiguration m_OnUpdateAudioSourceConfiguration

Definition at line 5 of file SCR_FuelSupportStationComponent.c.

◆ m_sOnUpdateSoundEffectEventName

protected string m_sOnUpdateSoundEffectEventName

Definition at line 3 of file SCR_FuelSupportStationComponent.c.

◆ m_SupportStationFuelManager

protected SCR_FuelManagerComponent m_SupportStationFuelManager

Definition at line 43 of file SCR_FuelSupportStationComponent.c.