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

Private Member Functions

void ActionZoomIn ()
 
override void CreateConditionComponents ()
 
override bool HasTarget ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnEndServer (ActionData action_data)
 

Detailed Description

Definition at line 1 of file ActionZoomIn.c.

Constructor & Destructor Documentation

◆ ActionZoomIn()

void ActionZoomIn::ActionZoomIn ( )
inlineprivate

Definition at line 3 of file ActionZoomIn.c.

4 {
5 m_Text = "#zoom_in";
6 }
string m_Text
Definition ActionBase.c:49

References m_Text.

Member Function Documentation

◆ ActionCondition()

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

Definition at line 19 of file ActionZoomIn.c.

20 {
22 if (Class.CastTo(optic, item) && !optic.IsInOptics())
23 return true;
24 return false;
25 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

References Class::CastTo().

◆ CreateConditionComponents()

override void ActionZoomIn::CreateConditionComponents ( )
inlineprivate

Definition at line 8 of file ActionZoomIn.c.

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

Definition at line 14 of file ActionZoomIn.c.

15 {
16 return false;
17 }

◆ OnEndServer()

override void ActionZoomIn::OnEndServer ( ActionData action_data)
inlineprivate

Definition at line 27 of file ActionZoomIn.c.

28 {
30 if (Class.CastTo(optic, action_data.m_MainItem))
31 optic.EnterOptics();
32 }

References Class::CastTo().


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