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

Private Member Functions

void BreakLongWoodenStick (EntityAI old_item, string new_item_type, PlayerBase player, int count)
 
override void CopyOldPropertiesToNew (notnull EntityAI old_item, EntityAI new_item)
 
- Private Member Functions inherited from ReplaceItemWithNewLambdaBase
bool WantCreateNewEntity ()
 
bool CanExecuteLambda ()
 
bool PrepareLocations ()
 Step A. - prepare inventory locations.
 
void RemoveOldItemFromLocation ()
 Step B. - free location for new item @NOTE this operation does not delete the object, only removes it from inventory location.
 
void UndoRemoveOldItemFromLocation ()
 
void RemoveNetworkObjectInfo ()
 Step C. - remove network part of the object @NOTE this operation does not delete the object, only removes its network part (and deletes it on client)
 
void UndoRemoveNetworkObjectInfo ()
 
EntityAI CreateNewEntity ()
 Step D. - create new entity (LOCAL) with specified type.
 
void CopyOldPropertiesToNew (notnull EntityAI old_item, EntityAI new_item)
 Step E. copy properties from old object to the created one.
 
void DeleteOldEntity ()
 Step F. - deletes physically old item.
 
void CreateNetworkObjectInfo (EntityAI new_item)
 Step G. - create NetworkObjectInfo for new item.
 
void OnSuccess (EntityAI new_item)
 Step H. - notification on finish.
 
void OnAbort ()
 Step Out - notification on abort.
 
void Execute (HumanInventoryWithFSM fsm_to_notify=null)
 
string DumpToString ()
 

Private Attributes

int m_ItemCount
 
- Private Attributes inherited from ReplaceItemWithNewLambdaBase
ref InventoryLocation m_OldLocation
 
ref InventoryLocation m_NewLocation
 
bool m_RemoveFromLocationPassed = false
 

Detailed Description

Definition at line 62 of file ActionBreakLongWoodenStick.c.

Constructor & Destructor Documentation

◆ BreakLongWoodenStick()

void BreakLongWoodenStick::BreakLongWoodenStick ( EntityAI old_item,
string new_item_type,
PlayerBase player,
int count )
inlineprivate

Definition at line 66 of file ActionBreakLongWoodenStick.c.

References m_ItemCount.

Member Function Documentation

◆ CopyOldPropertiesToNew()

override void BreakLongWoodenStick::CopyOldPropertiesToNew ( notnull EntityAI old_item,
EntityAI new_item )
inlineprivate

Definition at line 71 of file ActionBreakLongWoodenStick.c.

72 {
73 super.CopyOldPropertiesToNew(old_item, new_item);
74
77
80
81 MiscGameplayFunctions.TransferItemProperties(ingredient, sticks);
82
83 sticks.SetQuantity(m_ItemCount);
84 }
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_ItemCount.

Member Data Documentation

◆ m_ItemCount

int BreakLongWoodenStick::m_ItemCount
private

Definition at line 64 of file ActionBreakLongWoodenStick.c.

Referenced by BreakLongWoodenStick(), and CopyOldPropertiesToNew().


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