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

Protected Member Functions

override void Setup (ActionData action_data)
 
override int Execute (ActionData action_data)
 

Protected Attributes

FishingRod_Base m_Rod
 

Detailed Description

Definition at line 1 of file CAContinuousFish.c.

Member Function Documentation

◆ Execute()

override int CAContinuousFish::Execute ( ActionData action_data)
inlineprotected

Definition at line 10 of file CAContinuousFish.c.

11 {
12 if (m_Rod != action_data.m_MainItem)
13 return UA_ERROR;
14
15 if (GetGame().IsServer())
16 m_Rod.AddPull(action_data.m_Player.GetDeltaT());
17 return UA_PROCESSING;
18 }
FishingRod_Base m_Rod
proto native CGame GetGame()
const int UA_ERROR
Definition constants.c:455
const int UA_PROCESSING
Definition constants.c:434

References GetGame(), m_Rod, UA_ERROR, and UA_PROCESSING.

◆ Setup()

override void CAContinuousFish::Setup ( ActionData action_data)
inlineprotected

Definition at line 5 of file CAContinuousFish.c.

6 {
7 Class.CastTo(m_Rod, action_data.m_MainItem);
8 }
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(), and m_Rod.

Member Data Documentation

◆ m_Rod

FishingRod_Base CAContinuousFish::m_Rod
protected

Definition at line 3 of file CAContinuousFish.c.

Referenced by Execute(), and Setup().


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