![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
base class for transformation operations (creating one item from another) More...
Protected Member Functions | |
| 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 () |
Protected Attributes | |
| ref InventoryLocation | m_NewLocation |
| ref InventoryLocation | m_OldLocation |
| bool | m_RemoveFromLocationPassed = false |
Private Member Functions | |
| void | ReplaceItemWithNewLambdaBase (EntityAI old_item, string new_item_type) |
| void | OverrideNewLocation (InventoryLocation newLocation) |
| void | VerifyItemTypeBySlotType () |
Private Attributes | |
| string | m_NewItemType |
| EntityAI | m_OldItem |
| bool | m_RemoveNetworkObjectInfoPassed = false |
base class for transformation operations (creating one item from another)
Definition at line 4 of file replaceitemwithnewlambdabase.c.
|
inlineprivate |
Definition at line 13 of file replaceitemwithnewlambdabase.c.
References m_NewItemType, and m_OldItem.
|
inlineprotected |
Definition at line 31 of file replaceitemwithnewlambdabase.c.
References GameInventory::LocationCanRemoveEntity(), m_OldItem, and m_OldLocation.
Referenced by Execute().
Definition at line 193 of file replaceitemwithnewlambdabase.c.
References hndDebugPrint(), and LogManager::IsInventoryHFSMLogEnable().
Referenced by Execute().
|
inlineprotected |
Definition at line 212 of file replaceitemwithnewlambdabase.c.
References g_Game, hndDebugPrint(), and LogManager::IsInventoryHFSMLogEnable().
Referenced by Execute().
|
inlineprotected |
Step D.
@NOTE: if (!m_NewLocation || m_NewItemType.Empty) ==> this function does not create a new entity
Definition at line 131 of file replaceitemwithnewlambdabase.c.
References CFG_VEHICLESPATH, ECE_LOCAL, ECE_OBJECT_SWAP, ECE_PLACE_ON_SURFACE, g_Game, hndDebugPrint(), LogManager::IsInventoryHFSMLogEnable(), GameInventory::LocationCreateEntity(), GameInventory::LocationCreateLocalEntity(), m_NewItemType, m_NewLocation, m_OldItem, path, RF_NONE, VerifyItemTypeBySlotType(), and WantCreateNewEntity().
Referenced by Execute().
|
inlineprotected |
Step F.
Definition at line 201 of file replaceitemwithnewlambdabase.c.
References hndDebugPrint(), LogManager::IsInventoryHFSMLogEnable(), and m_OldItem.
Referenced by Execute().
|
inlineprotected |
Definition at line 306 of file replaceitemwithnewlambdabase.c.
References m_NewItemType, and m_OldItem.
Referenced by EntityAI::ReplaceItemElsewhereWithNewInHandsImpl(), EntityAI::ReplaceItemInHandsWithNewElsewhereImpl(), EntityAI::ReplaceItemInHandsWithNewImpl(), and EntityAI::ReplaceItemWithNewImpl().
|
inlineprotected |
Definition at line 239 of file replaceitemwithnewlambdabase.c.
References CanExecuteLambda(), CopyOldPropertiesToNew(), CreateNetworkObjectInfo(), CreateNewEntity(), DeleteOldEntity(), InventoryLocation::DumpToStringNullSafe(), Error(), g_Game, hndDebugPrint(), LogManager::IsInventoryHFSMLogEnable(), m_NewItemType, m_NewLocation, m_OldItem, m_OldLocation, m_RemoveFromLocationPassed, m_RemoveNetworkObjectInfoPassed, OnAbort(), OnSuccess(), PrepareLocations(), Print(), RemoveNetworkObjectInfo(), RemoveOldItemFromLocation(), UndoRemoveNetworkObjectInfo(), UndoRemoveOldItemFromLocation(), and WantCreateNewEntity().
Referenced by GameInventory::ReplaceItemWithNew().
|
inlineprotected |
Step Out - notification on abort.
@NOTE: new_item can be null if the lambda did not create any item (intentionaly)
Definition at line 234 of file replaceitemwithnewlambdabase.c.
References Print().
Referenced by Execute().
|
inlineprotected |
Definition at line 224 of file replaceitemwithnewlambdabase.c.
References hndDebugPrint(), and LogManager::IsInventoryHFSMLogEnable().
Referenced by Execute().
|
inlineprivate |
Definition at line 19 of file replaceitemwithnewlambdabase.c.
References m_NewLocation.
|
inlineprotected |
Step A.
Definition at line 43 of file replaceitemwithnewlambdabase.c.
References CFG_VEHICLESPATH, Error(), g_Game, hndDebugPrint(), LogManager::IsInventoryHFSMLogEnable(), m_NewItemType, m_NewLocation, m_OldItem, m_OldLocation, Math3D::MatrixIdentity4(), and path.
Referenced by Execute().
|
inlineprotected |
Step C.
Definition at line 115 of file replaceitemwithnewlambdabase.c.
References g_Game, m_OldItem, and m_RemoveNetworkObjectInfoPassed.
Referenced by Execute().
|
inlineprotected |
Step B.
Definition at line 86 of file replaceitemwithnewlambdabase.c.
References InventoryLocation::DumpToStringNullSafe(), Error(), GameInventory::LocationRemoveEntity(), m_OldLocation, m_RemoveFromLocationPassed, and Print().
Referenced by Execute().
|
inlineprotected |
Definition at line 121 of file replaceitemwithnewlambdabase.c.
References g_Game, and m_OldItem.
Referenced by Execute().
|
inlineprotected |
Definition at line 99 of file replaceitemwithnewlambdabase.c.
References InventoryLocation::DumpToStringNullSafe(), Error(), GameInventory::LocationAddEntity(), m_OldLocation, and Print().
Referenced by Execute().
|
inlineprivate |
Definition at line 24 of file replaceitemwithnewlambdabase.c.
Referenced by CreateNewEntity().
|
inlineprotected |
Definition at line 26 of file replaceitemwithnewlambdabase.c.
References m_NewItemType, and m_NewLocation.
Referenced by CreateNewEntity(), and Execute().
|
private |
Definition at line 7 of file replaceitemwithnewlambdabase.c.
Referenced by ReplaceItemWithNewLambdaBase(), UnboxLambda::CopyOldPropertiesToNew(), CreateNewEntity(), DumpToString(), Execute(), PrepareLocations(), ReplaceItemWithNewLambda::VerifyItemTypeBySlotType(), and WantCreateNewEntity().
|
protected |
Definition at line 9 of file replaceitemwithnewlambdabase.c.
Referenced by DropEquipAndDestroyRootLambda::CopyOldPropertiesToNew(), CreateNewEntity(), Execute(), OverrideNewLocation(), PrepareLocations(), ReplaceItemWithNewLambda::VerifyItemTypeBySlotType(), and WantCreateNewEntity().
|
private |
Definition at line 6 of file replaceitemwithnewlambdabase.c.
Referenced by ReplaceItemWithNewLambdaBase(), CanExecuteLambda(), CreateNewEntity(), DeleteOldEntity(), DumpToString(), Execute(), ReplaceDetonatorItemOnDisarmLambda::OnSuccess(), PrepareLocations(), RemoveNetworkObjectInfo(), GameInventory::ReplaceItemWithNew(), HumanInventory::ReplaceItemWithNew(), UndoRemoveNetworkObjectInfo(), and ReplaceItemWithNewLambda::VerifyItemTypeBySlotType().
|
protected |
Definition at line 8 of file replaceitemwithnewlambdabase.c.
Referenced by CanExecuteLambda(), Execute(), PrepareLocations(), RemoveOldItemFromLocation(), and UndoRemoveOldItemFromLocation().
|
protected |
Definition at line 10 of file replaceitemwithnewlambdabase.c.
Referenced by Execute(), and RemoveOldItemFromLocation().
|
private |
Definition at line 11 of file replaceitemwithnewlambdabase.c.
Referenced by Execute(), and RemoveNetworkObjectInfo().