DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ MakeSrcAndDstForSwap()

static bool GameInventory::MakeSrcAndDstForSwap ( notnull EntityAI item1,
notnull EntityAI item2,
out InventoryLocation src1,
out InventoryLocation src2,
out InventoryLocation dst1,
out InventoryLocation dst2 )
inlinestaticprotected

helper function for swap

См. определение в файле 3_Game/DayZ/Systems/Inventory/Inventory.c строка 1168

1169 {
1170 if (src1 == null)
1171 src1 = new InventoryLocation();
1172 if (src2 == null)
1173 src2 = new InventoryLocation();
1174 if (item1.GetInventory().GetCurrentInventoryLocation(src1) && item2.GetInventory().GetCurrentInventoryLocation(src2))
1175 return MakeDstForSwap(src1, src2, dst1, dst2);
1176 return false;
1177 }
static bool MakeDstForSwap(notnull InventoryLocation src1, notnull InventoryLocation src2, out InventoryLocation dst1, out InventoryLocation dst2)
helper function for swap

Перекрестные ссылки MakeDstForSwap().

Используется в HandleSwapEntities(), HumanInventory::SwapEntities() и SwapEntities().