DayZ 1.29
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 строка 1211

1212 {
1213 if (src1 == null)
1214 src1 = new InventoryLocation();
1215 if (src2 == null)
1216 src2 = new InventoryLocation();
1217 if (item1.GetInventory().GetCurrentInventoryLocation(src1) && item2.GetInventory().GetCurrentInventoryLocation(src2))
1218 return MakeDstForSwap(src1, src2, dst1, dst2);
1219 return false;
1220 }
static bool MakeDstForSwap(notnull InventoryLocation src1, notnull InventoryLocation src2, out InventoryLocation dst1, out InventoryLocation dst2)
helper function for swap

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

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