PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
ReplaceItemWithNewLambda Class Reference

adds automatic QuickBar handling More...

Private Member Functions

void TurnItemIntoItemLambda (EntityAI old_item, string new_item_type, PlayerBase player)
 
void SetTransferParams (bool transfer_agents=true, bool transfer_variables=true, bool transfer_health=true, bool exclude_quantity=false, float quantity_override=-1)
 
override void CopyOldPropertiesToNew (notnull EntityAI old_item, EntityAI new_item)
 
override void VerifyItemTypeBySlotType ()
 if attaching from att.slot to att.slot, skips the change to "ground" version. Allows for correct property transfers.
 
override void OnSuccess (EntityAI new_item)
 
void ReplaceItemWithNewLambda (EntityAI old_item, string new_item_type, PlayerBase player)
 
override void CopyOldPropertiesToNew (notnull EntityAI old_item, EntityAI new_item)
 
override void OnSuccess (EntityAI new_item)
 

Private Attributes

bool m_TransferAgents
 
bool m_TransferVariables
 
bool m_TransferHealth
 
bool m_ExcludeQuantity
 
float m_quantity_override
 
PlayerBase m_Player
 
int m_IndexQB
 

Detailed Description

adds automatic QuickBar handling

Constructor & Destructor Documentation

◆ ReplaceItemWithNewLambda()

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

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

References m_IndexQB, and m_Player.

◆ OnSuccess() [1/2]

override void OnSuccess ( EntityAI  new_item)
inlineprivate

References m_Player.

◆ OnSuccess() [2/2]

override void OnSuccess ( EntityAI  new_item)
inlineprivate

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

◆ VerifyItemTypeBySlotType()

override void VerifyItemTypeBySlotType ( )
inlineprivate

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

References InventorySlots::GetSlotIdFromString().

Field Documentation

◆ m_ExcludeQuantity

bool m_ExcludeQuantity
private

◆ m_IndexQB

int m_IndexQB
private

◆ m_Player

◆ m_quantity_override

float m_quantity_override
private

◆ m_TransferAgents

bool m_TransferAgents
private

◆ m_TransferHealth

bool m_TransferHealth
private

◆ m_TransferVariables

bool m_TransferVariables
private

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