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

Private Member Functions

void ActionOpen ()
 
override void CreateConditionComponents ()
 
override bool HasTarget ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override bool ActionConditionContinue (ActionData action_data)
 
override void OnExecuteClient (ActionData action_data)
 
override void OnExecuteServer (ActionData action_data)
 

Detailed Description

Definition at line 1 of file ActionOpen.c.

Constructor & Destructor Documentation

◆ ActionOpen()

void ActionOpen::ActionOpen ( )
inlineprivate

Definition at line 3 of file ActionOpen.c.

4 {
5 m_CommandUID = DayZPlayerConstants.CMD_ACTIONMOD_OPENITEM_ONCE;
6 m_CommandUIDProne = DayZPlayerConstants.CMD_ACTIONFB_OPENITEM_ONCE;
7 //m_Animation = "open";
8 m_Text = "#open";
9 }
string m_Text
Definition ActionBase.c:49
DayZPlayerConstants
defined in C++
Definition dayzplayer.c:597

References AnimatedActionBase::m_CommandUID, AnimatedActionBase::m_CommandUIDProne, and m_Text.

Member Function Documentation

◆ ActionCondition()

override bool ActionOpen::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

Definition at line 22 of file ActionOpen.c.

23 {
24 if (item && !item.IsOpen())
25 return true;
26 return false;
27 }

◆ ActionConditionContinue()

override bool ActionOpen::ActionConditionContinue ( ActionData action_data)
inlineprivate

Definition at line 29 of file ActionOpen.c.

30 {
31 return true;
32 }

◆ CreateConditionComponents()

override void ActionOpen::CreateConditionComponents ( )
inlineprivate

Definition at line 11 of file ActionOpen.c.

12 {
15 }
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 ActionOpen::HasTarget ( )
inlineprivate

Definition at line 17 of file ActionOpen.c.

18 {
19 return false;
20 }

◆ OnExecuteClient()

override void ActionOpen::OnExecuteClient ( ActionData action_data)
inlineprivate

Definition at line 34 of file ActionOpen.c.

35 {
37 }
void ClearInventoryReservationEx(ActionData action_data)
Definition ActionBase.c:790

References ClearInventoryReservationEx().

◆ OnExecuteServer()

override void ActionOpen::OnExecuteServer ( ActionData action_data)
inlineprivate

Definition at line 39 of file ActionOpen.c.

40 {
41 if (!GetGame().IsMultiplayer())
43
44 action_data.m_MainItem.Open();
45 }
proto native CGame GetGame()

References ClearInventoryReservationEx(), and GetGame().


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