DayZ 1.28
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/Systems/Inventory/Inventory.c строка 1209

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

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

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