DayZ 1.24
Loading...
Searching...
No Matches
ActionReadPaper Class Reference
Inheritance diagram for ActionReadPaper:
[legend]
Collaboration diagram for ActionReadPaper:
[legend]

Private Member Functions

void ActionReadPaper ()
 
override void CreateConditionComponents ()
 
override bool HasTarget ()
 
override void OnUpdate (ActionData action_data)
 
override void OnEndRequest (ActionData action_data)
 
- Private Member Functions inherited from ActionContinuousBase
void OnStartAnimationLoopServer (ActionData action_data)
 
void OnStartAnimationLoopClient (ActionData action_data)
 
void OnEndAnimationLoopServer (ActionData action_data)
 
void OnEndAnimationLoopClient (ActionData action_data)
 
void OnFinishProgressServer (ActionData action_data)
 
void OnFinishProgressClient (ActionData action_data)
 

Detailed Description

Definition at line 29 of file ActionReadPaper.c.

Constructor & Destructor Documentation

◆ ActionReadPaper()

void ActionReadPaper::ActionReadPaper ( )
inlineprivate

Definition at line 31 of file ActionReadPaper.c.

32 {
34 m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_VIEWNOTE;
35 m_FullBody = true;
36 m_StanceMask = DayZPlayerConstants.STANCEMASK_CROUCH | DayZPlayerConstants.STANCEMASK_ERECT | DayZPlayerConstants.STANCEMASK_PRONE;
37 m_Text = "#read";
38 }
bool m_FullBody
Definition ActionBase.c:52
string m_Text
Definition ActionBase.c:49
int m_StanceMask
Definition ActionBase.c:53
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References AnimatedActionBase::m_CallbackClass, AnimatedActionBase::m_CommandUID, m_FullBody, m_StanceMask, and m_Text.

Member Function Documentation

◆ CreateConditionComponents()

override void ActionReadPaper::CreateConditionComponents ( )
inlineprivate

Definition at line 40 of file ActionReadPaper.c.

41 {
44 }
ref CCIBase m_ConditionItem
Definition ActionBase.c:55
ref CCTBase m_ConditionTarget
Definition ActionBase.c:56

References m_ConditionItem, and m_ConditionTarget.

◆ HasTarget()

override bool ActionReadPaper::HasTarget ( )
inlineprivate

Definition at line 46 of file ActionReadPaper.c.

47 {
48 return false;
49 }

◆ OnEndRequest()

override void ActionReadPaper::OnEndRequest ( ActionData action_data)
inlineprivate

Definition at line 62 of file ActionReadPaper.c.

63 {
64 if (action_data.m_Callback)
65 action_data.m_Callback.InternalCommand(DayZPlayerConstants.CMD_ACTIONINT_INTERRUPT);
66 }

◆ OnUpdate()

override void ActionReadPaper::OnUpdate ( ActionData action_data)
inlineprivate

Definition at line 51 of file ActionReadPaper.c.

52 {
53 super.OnUpdate(action_data);
54
55 if (!GetGame().IsDedicatedServer())
56 {
57 if (action_data.m_State == UA_FINISHED && GetGame().GetUIManager() && !GetGame().GetUIManager().IsMenuOpen(MENU_NOTE))
58 ActionManagerClient.Cast(action_data.m_Player.GetActionManager()).RequestEndAction();
59 }
60 }
override void RequestEndAction()
proto native CGame GetGame()
const int MENU_NOTE
Definition constants.c:180
const int UA_FINISHED
Definition constants.c:436

References GetGame(), MENU_NOTE, ActionManagerClient::RequestEndAction(), and UA_FINISHED.


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