477 {
479 {
480 Error(
"[inv] HumanInventory::ReplaceItemInElsewhereWithNewinHandsImpl Item in hands, event=" + e.
DumpToString());
481 return false;
482 }
483
484 InventoryLocation dst = e.
GetDst();
485 if (dst)
486 {
488 {
491 {
492 if (LogManager.IsInventoryHFSMLogEnable())
hndDebugPrint(
"[inv] HumanInventory::ReplaceItemInElsewhereWithNewinHandsImpl event=" + e);
494 return true;
495 }
496
498 Error(
"HumanInventory::ReplaceItemInElsewhereWithNewinHandsImpl TODO");
499 return false;
500
501 default:
502 Error(
"[inv] HumanInventory::ReplaceItemInElsewhereWithNewinHandsImpl src has to be hands");
503 return false;
504 }
505 }
506
507 Error(
"[inv] HumanInventory::ReplaceItemInElsewhereWithNewinHandsImpl no dst in event, event=" + e.
DumpToString());
508 return false;
509 }
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.