466 {
468 {
469 Error(
"[inv] HumanInventory::ReplaceItemInElsewhereWithNewinHandsImpl Item in hands, event=" + e.
DumpToString());
470 return false;
471 }
472
473 InventoryLocation dst = e.
GetDst();
474 if (dst)
475 {
477 {
480 {
481 if (LogManager.IsInventoryHFSMLogEnable())
hndDebugPrint(
"[inv] HumanInventory::ReplaceItemInElsewhereWithNewinHandsImpl event=" + e);
483 return true;
484 }
485
487 Error(
"HumanInventory::ReplaceItemInElsewhereWithNewinHandsImpl TODO");
488 return false;
489
490 default:
491 Error(
"[inv] HumanInventory::ReplaceItemInElsewhereWithNewinHandsImpl src has to be hands");
492 return false;
493 }
494 }
495
496 Error(
"[inv] HumanInventory::ReplaceItemInElsewhereWithNewinHandsImpl no dst in event, event=" + e.
DumpToString());
497 return false;
498 }
void hndDebugPrint(string s)
InventoryLocationType
types of Inventory Location
proto native EntityAI GetInventoryOwner()
Engine native functions.
override InventoryLocation GetDst()
override string DumpToString()
bool HandEvent(InventoryMode mode, HandEventBase e)
proto native EntityAI GetEntityInHands()
proto native int GetType()
returns type of InventoryLocation
void Error(string err)
Messagebox with error message.