DayZ 1.24
Loading...
Searching...
No Matches
ActionTurnValveUndergroundReservoir.c File Reference

Go to the source code of this file.

Classes

class  ActionTurnValveUndergroundReservoirCB
 

Functions

ActionTurnValveUndergroundReservoirCB ActionTurnValveCB ActionTurnValveUndergroundReservoir ()
 
override void CreateActionComponent ()
 
void CreateAndSetupActionCallback (ActionData action_data)
 
override void OnStartAnimationLoopServer (ActionData action_data)
 
override void OnEndAnimationLoop (ActionData action_data)
 
override void OnFinishProgressServer (ActionData action_data)
 

Function Documentation

◆ ActionTurnValveUndergroundReservoir()

◆ CreateActionComponent()

override void ActionTurnValveUndergroundReservoir::CreateActionComponent ( )

Definition at line 13 of file ActionTurnValveUndergroundReservoir.c.

13 {
15 }
16

◆ CreateAndSetupActionCallback()

void CreateAndSetupActionCallback ( ActionData action_data)
protected

Definition at line 17 of file ActionTurnValveUndergroundReservoir.c.

18 {
19 super.CreateAndSetupActionCallback(action_data);
20
22 if (reservoir)
23 {
24 if (action_data.m_Callback)
25 {
26 array<vector> data = reservoir.GetValveAligningPointsWS(reservoir.GetTurnableValveIndex(action_data.m_Target.GetComponentIndex()));
27 vector position = data[0];
28 vector direction = data[1] - data[0];
29
30 action_data.m_Callback.SetAligning(position, direction.Normalized());
31 }
32 }
33 }
void Land_Underground_WaterReservoir()

References Land_Underground_WaterReservoir().

◆ OnEndAnimationLoop()

override void OnEndAnimationLoop ( ActionData action_data)
protected

Definition at line 44 of file ActionTurnValveUndergroundReservoir.c.

45 {
46 super.OnEndAnimationLoop(action_data);
47
49 if (reservoir)
50 reservoir.OnValveManipulationCanceled(reservoir.GetTurnableValveIndex(action_data.m_Target.GetComponentIndex()));
51 }

References Land_Underground_WaterReservoir().

◆ OnFinishProgressServer()

override void OnFinishProgressServer ( ActionData action_data)
protected

Definition at line 53 of file ActionTurnValveUndergroundReservoir.c.

54 {
55 super.OnFinishProgressServer(action_data);
56
58 if (reservoir)
59 reservoir.OnValveManipulationEnd(reservoir.GetTurnableValveIndex(action_data.m_Target.GetComponentIndex()));
60 }

References Land_Underground_WaterReservoir().

◆ OnStartAnimationLoopServer()

override void OnStartAnimationLoopServer ( ActionData action_data)
protected

Definition at line 35 of file ActionTurnValveUndergroundReservoir.c.

36 {
37 super.OnStartAnimationLoopServer(action_data);
38
40 if (reservoir)
41 reservoir.OnValveManipulationStart(reservoir.GetTurnableValveIndex(action_data.m_Target.GetComponentIndex()));
42 }

References Land_Underground_WaterReservoir().