4 if (player.NeedInventoryJunctureFromServer(src.GetItem(), src.GetParent(), dst.GetParent()))
6 if ( ( src.GetItem() && src.GetItem().IsSetForDeletion() ) || ( src.GetParent() && src.GetParent().IsSetForDeletion() ) || ( dst.GetParent() && dst.GetParent().IsSetForDeletion() ) )
10 bool test_dst_occupancy =
true;
11 if (
GetGame().AddInventoryJunctureEx(player, src.GetItem(), dst, test_dst_occupancy,
GameInventory.c_InventoryReservationTimeoutMS))
32 if (
LogManager.IsInventoryReservationLogEnable() )
34 Debug.InventoryReservationLog(
"STS = " + player.GetSimulationTimeStamp() +
" src1:" + src1.DumpToString() +
" dst1: " + dst1.DumpToString()+
" src2:" + src2.DumpToString() +
" dst2: " + dst2.DumpToString(),
"InventoryJuncture" ,
"n/a",
"TryAcquireTwoInventoryJuncturesFromServer",player.ToString() );
40 bool need_j1 = player.NeedInventoryJunctureFromServer(src1.GetItem(), src1.GetParent(), dst1.GetParent());
41 bool need_j2 = player.NeedInventoryJunctureFromServer(src2.GetItem(), src2.GetParent(), dst2.GetParent());
42 if (need_j1 || need_j2)
46 if ( ( src1.GetItem() && src1.GetItem().IsSetForDeletion() ) || ( src1.GetParent() && src1.GetParent().IsSetForDeletion() ) || ( dst1.GetParent() && dst1.GetParent().IsSetForDeletion() ) )
50 if (!
GetGame().AddInventoryJunctureEx(player, src1.GetItem(), dst1,
false,
GameInventory.c_InventoryReservationTimeoutMS))
64 if ( ( src2.GetItem() && src2.GetItem().IsSetForDeletion() ) || ( src2.GetParent() && src2.GetParent().IsSetForDeletion() ) || ( dst2.GetParent() && dst2.GetParent().IsSetForDeletion() ) )
68 GetGame().ClearJunctureEx(player, src1.GetItem());
72 if (!
GetGame().AddInventoryJunctureEx(player, src2.GetItem(), dst2,
false,
GameInventory.c_InventoryReservationTimeoutMS))
77 GetGame().ClearJunctureEx(player, src1.GetItem());
89 if (
LogManager.IsInventoryReservationLogEnable() )
91 Debug.InventoryMoveLog(
"Remote - skipped",
"SWAP" ,
"n/a",
"ProcessInputData", player.ToString() );