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

adds automatic QuickBar handling More...

Inheritance diagram for ReplaceItemWithNewLambda:
ReplaceItemWithNewLambdaBase ActionCollectBloodTargetLambda

Private Member Functions

void ReplaceItemWithNewLambda (EntityAI old_item, string new_item_type, PlayerBase player)
override void CopyOldPropertiesToNew (notnull EntityAI old_item, EntityAI new_item)
override void CopyOldPropertiesToNew (notnull EntityAI old_item, EntityAI new_item)
override void OnSuccess (EntityAI new_item)
override void OnSuccess (EntityAI new_item)
void SetTransferParams (bool transfer_agents=true, bool transfer_variables=true, bool transfer_health=true, bool exclude_quantity=false, float quantity_override=-1)
void TurnItemIntoItemLambda (EntityAI old_item, string new_item_type, PlayerBase player)
override void VerifyItemTypeBySlotType ()
 if attaching from att.slot to att.slot, skips the change to "ground" version. Allows for correct property transfers.
Private Member Functions inherited from ReplaceItemWithNewLambdaBase
bool CanExecuteLambda ()
void CopyOldPropertiesToNew (notnull EntityAI old_item, EntityAI new_item)
void CreateNetworkObjectInfo (EntityAI new_item)
EntityAI CreateNewEntity ()
 Step D.
void DeleteOldEntity ()
 Step F.
string DumpToString ()
void Execute (HumanInventoryWithFSM fsm_to_notify=null)
void OnAbort ()
 Step Out - notification on abort.
void OnSuccess (EntityAI new_item)
bool PrepareLocations ()
 Step A.
void RemoveNetworkObjectInfo ()
 Step C.
void RemoveOldItemFromLocation ()
 Step B.
void UndoRemoveNetworkObjectInfo ()
void UndoRemoveOldItemFromLocation ()
bool WantCreateNewEntity ()

Private Attributes

bool m_ExcludeQuantity
int m_IndexQB
PlayerBase m_Player
float m_quantity_override
bool m_TransferAgents
bool m_TransferHealth
bool m_TransferVariables
Private Attributes inherited from ReplaceItemWithNewLambdaBase
ref InventoryLocation m_NewLocation
ref InventoryLocation m_OldLocation
bool m_RemoveFromLocationPassed = false

Detailed Description

adds automatic QuickBar handling

Definition at line 1 of file miscgameplayfunctions.c.

Constructor & Destructor Documentation

◆ ReplaceItemWithNewLambda()

void ReplaceItemWithNewLambda ( EntityAI old_item,
string new_item_type,
PlayerBase player )
inlineprivate

Definition at line 9 of file replaceitemwithnewlambda.c.

References m_IndexQB, and m_Player.

Member Function Documentation

◆ CopyOldPropertiesToNew() [1/2]

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

◆ CopyOldPropertiesToNew() [2/2]

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

Definition at line 23 of file replaceitemwithnewlambda.c.

References m_IndexQB, and m_Player.

◆ OnSuccess() [1/2]

override void OnSuccess ( EntityAI new_item)
inlineprivate

Definition at line 81 of file miscgameplayfunctions.c.

References m_Player.

◆ OnSuccess() [2/2]

override void OnSuccess ( EntityAI new_item)
inlineprivate

Definition at line 33 of file replaceitemwithnewlambda.c.

References m_IndexQB, and m_Player.

◆ SetTransferParams()

void SetTransferParams ( bool transfer_agents = true,
bool transfer_variables = true,
bool transfer_health = true,
bool exclude_quantity = false,
float quantity_override = -1 )
inlineprivate

◆ TurnItemIntoItemLambda()

void TurnItemIntoItemLambda ( EntityAI old_item,
string new_item_type,
PlayerBase player )
inlineprivate

Definition at line 9 of file miscgameplayfunctions.c.

References SetTransferParams().

◆ VerifyItemTypeBySlotType()

override void VerifyItemTypeBySlotType ( )
inlineprivate

if attaching from att.slot to att.slot, skips the change to "ground" version. Allows for correct property transfers.

Definition at line 46 of file miscgameplayfunctions.c.

References InventorySlots::GetSlotIdFromString(), ReplaceItemWithNewLambdaBase::m_NewItemType, ReplaceItemWithNewLambdaBase::m_NewLocation, and ReplaceItemWithNewLambdaBase::m_OldItem.

Field Documentation

◆ m_ExcludeQuantity

bool m_ExcludeQuantity
private

Definition at line 6 of file miscgameplayfunctions.c.

Referenced by CopyOldPropertiesToNew(), and SetTransferParams().

◆ m_IndexQB

int m_IndexQB
private

◆ m_Player

◆ m_quantity_override

float m_quantity_override
private

Definition at line 7 of file miscgameplayfunctions.c.

Referenced by CopyOldPropertiesToNew(), and SetTransferParams().

◆ m_TransferAgents

bool m_TransferAgents
private

Definition at line 3 of file miscgameplayfunctions.c.

Referenced by CopyOldPropertiesToNew(), and SetTransferParams().

◆ m_TransferHealth

bool m_TransferHealth
private

Definition at line 5 of file miscgameplayfunctions.c.

Referenced by CopyOldPropertiesToNew(), and SetTransferParams().

◆ m_TransferVariables

bool m_TransferVariables
private

Definition at line 4 of file miscgameplayfunctions.c.

Referenced by CopyOldPropertiesToNew(), and SetTransferParams().


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