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

this one is a bit special: it drops all items and destroys the ex-root of the hierarchy More...

Private Member Functions

void DropEquipAndDestroyRootLambda (EntityAI old_item, string new_item_type, PlayerBase player)
 
override void CopyOldPropertiesToNew (notnull EntityAI old_item, EntityAI new_item)
 

Private Attributes

PlayerBase m_Player
 

Detailed Description

this one is a bit special: it drops all items and destroys the ex-root of the hierarchy

Constructor & Destructor Documentation

◆ DropEquipAndDestroyRootLambda()

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

References m_Player.

Member Function Documentation

◆ CopyOldPropertiesToNew()

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

We don't care if a valid transform couldn't be found, we just want to preferably use it instead of placing on the old item

References GetGame(), ReplaceItemWithNewLambdaBase::m_NewLocation, m_Player, Math3D::MatrixIdentity4(), GameInventory::PrepareDropEntityPos(), CGame::RemoteObjectTreeCreate(), and InventoryLocation::SetGround().

Field Documentation

◆ m_Player


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