Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_VehicleBuoyancyComponent.c
Go to the documentation of this file.
2 {
3 }
4 
5 //----------------------------------------------------------------------------
6 class SCR_VehicleBuoyancyComponent : VehicleBuoyancyComponent
7 {
8  protected ref ScriptInvokerVoid m_OnWaterEnter;
10 
11  //----------------------------------------------------------------------------
13  {
14  if (!m_OnWaterEnter)
16 
17  return m_OnWaterEnter;
18  }
19 
20  //----------------------------------------------------------------------------
22  {
23  if (!m_OnWaterExit)
25 
26  return m_OnWaterExit;
27  }
28 
29  //----------------------------------------------------------------------------
30  override void OnEnterWater()
31  {
32  if (m_OnWaterEnter)
33  m_OnWaterEnter.Invoke();
34  }
35 
36  //----------------------------------------------------------------------------
37  override void OnExitWater()
38  {
39  if (m_OnWaterExit)
40  m_OnWaterExit.Invoke();
41  }
42 }
GetOnWaterExit
ScriptInvokerVoid GetOnWaterExit()
Definition: SCR_VehicleBuoyancyComponent.c:21
m_OnWaterEnter
SCR_VehicleBuoyancyComponentClass m_OnWaterEnter
VehicleBuoyancyComponentClass
Definition: VehicleBuoyancyComponentClass.c:12
SCR_VehicleBuoyancyComponentClass
Definition: SCR_VehicleBuoyancyComponent.c:1
m_OnWaterExit
protected ref ScriptInvokerVoid m_OnWaterExit
Definition: SCR_VehicleBuoyancyComponent.c:9
ScriptInvokerVoid
ScriptInvokerBase< ScriptInvokerVoidMethod > ScriptInvokerVoid
Definition: SCR_ScriptInvokerHelper.c:9
OnEnterWater
override void OnEnterWater()
Definition: SCR_VehicleBuoyancyComponent.c:30
GetOnWaterEnter
ScriptInvokerVoid GetOnWaterEnter()
Definition: SCR_VehicleBuoyancyComponent.c:12
OnExitWater
override void OnExitWater()
Definition: SCR_VehicleBuoyancyComponent.c:37
VehicleBuoyancyComponent
Definition: VehicleBuoyancyComponent.c:12