Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
InventoryActionHandler Class Reference

Client only - manage set up crafting on client. More...

Private Member Functions

void InventoryActionHandler (PlayerBase player)
void DeactiveAction ()
bool IsActiveAction ()
void OnUpdate ()
void SetAction (ActionBase action, ActionTarget target, ItemBase main_item)
void SetAction (ActionBase action, ItemBase target_item, ItemBase main_item)

Private Attributes

const int IAH_CONTINUOUS = 2
const int IAH_SINGLE_USE = 1
ActionBase m_action
vector m_actionStartPos
bool m_isActive
ItemBase m_mainItem
PlayerBase m_player
ActionTarget m_target
bool m_useItemInHands
const float MIN_DISTANCE_TO_INTERRUPT = 1.0

Detailed Description

Client only - manage set up crafting on client.

Definition at line 2 of file inventoryactionhandler.c.

Constructor & Destructor Documentation

◆ InventoryActionHandler()

void InventoryActionHandler ( PlayerBase player)
inlineprivate

Definition at line 19 of file inventoryactionhandler.c.

References m_action, m_isActive, m_mainItem, m_player, m_target, and m_useItemInHands.

Member Function Documentation

◆ DeactiveAction()

◆ IsActiveAction()

bool IsActiveAction ( )
inlineprivate

Definition at line 63 of file inventoryactionhandler.c.

References m_isActive.

◆ OnUpdate()

◆ SetAction() [1/2]

◆ SetAction() [2/2]

void SetAction ( ActionBase action,
ItemBase target_item,
ItemBase main_item )
inlineprivate

Definition at line 30 of file inventoryactionhandler.c.

References ActionTarget, SetAction(), and vector::Zero.

Referenced by SetAction().

Field Documentation

◆ IAH_CONTINUOUS

const int IAH_CONTINUOUS = 2
private

Definition at line 16 of file inventoryactionhandler.c.

◆ IAH_SINGLE_USE

const int IAH_SINGLE_USE = 1
private

Definition at line 15 of file inventoryactionhandler.c.

◆ m_action

ActionBase m_action
private

Definition at line 4 of file inventoryactionhandler.c.

Referenced by InventoryActionHandler(), DeactiveAction(), and SetAction().

◆ m_actionStartPos

vector m_actionStartPos
private

Definition at line 12 of file inventoryactionhandler.c.

Referenced by OnUpdate(), and SetAction().

◆ m_isActive

bool m_isActive
private

◆ m_mainItem

ItemBase m_mainItem
private

◆ m_player

PlayerBase m_player
private

◆ m_target

ActionTarget m_target
private

Definition at line 5 of file inventoryactionhandler.c.

Referenced by InventoryActionHandler(), DeactiveAction(), and SetAction().

◆ m_useItemInHands

bool m_useItemInHands
private

◆ MIN_DISTANCE_TO_INTERRUPT

const float MIN_DISTANCE_TO_INTERRUPT = 1.0
private

Definition at line 14 of file inventoryactionhandler.c.

Referenced by OnUpdate().


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