7 Debug.
InventoryReservationLog(
"STS = " + player.GetSimulationTimeStamp() +
" src:" + src.DumpToString() +
" dst: " + dst.DumpToString(),
"InventoryJuncture" ,
"n/a",
"TryAcquireInventoryJunctureFromServer",player.ToString() );
17 if (player.NeedInventoryJunctureFromServer(src.GetItem(), src.GetParent(), dst.GetParent()))
19 if ( ( src.GetItem() && src.GetItem().IsSetForDeletion() ) || ( src.GetParent() && src.GetParent().IsSetForDeletion() ) || ( dst.GetParent() && dst.GetParent().IsSetForDeletion() ) )
24 if (src.GetItem() && !src.GetItem().CanPutIntoHands(player))
29 bool test_dst_occupancy =
true;
53 Debug.
InventoryReservationLog(
"STS = " + player.GetSimulationTimeStamp() +
" src1:" + src1.DumpToString() +
" dst1: " + dst1.DumpToString()+
" src2:" + src2.DumpToString() +
" dst2: " + dst2.DumpToString(),
"InventoryJuncture" ,
"n/a",
"TryAcquireTwoInventoryJuncturesFromServer",player.ToString() );
61 EntityAI srcParent1 = src1.GetParent();
62 EntityAI srcParent2 = src2.GetParent();
63 EntityAI dstParent1 = dst1.GetParent();
64 EntityAI dstParent2 = dst2.GetParent();
80 bool need_j2 = player.NeedInventoryJunctureFromServer(srcItem2, srcParent2, dstParent2);
81 if (need_j1 || need_j2)
85 if ( ( srcItem1 && srcItem1.IsSetForDeletion() ) || ( srcParent1 && srcParent1.IsSetForDeletion() ) || ( dstParent1 && dstParent1.IsSetForDeletion() ) )
91 if (srcItem1 && !srcItem1.CanPutIntoHands(player))
110 if ( ( srcItem2 && srcItem2.IsSetForDeletion() ) || ( srcParent2 && srcParent2.IsSetForDeletion() ) || ( dstParent2 && dstParent2.IsSetForDeletion() ) )
114 g_Game.ClearJunctureEx(player, srcItem1);
119 if (srcItem2 && !srcItem2.CanPutIntoHands(player))
123 g_Game.ClearJunctureEx(player, srcItem1);
133 g_Game.ClearJunctureEx(player, srcItem1);
bool TryAcquireTwoInventoryJuncturesFromServer(notnull Man player, notnull InventoryLocation src1, notnull InventoryLocation src2, notnull InventoryLocation dst1, notnull InventoryLocation dst2)