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

◆ SwapEntities()

override bool SwapEntities ( InventoryMode mode,
notnull EntityAI item1,
notnull EntityAI item2 )
protected

См. определение в файле DayZPlayerInventory.c строка 1854

1855 {
1856 #ifdef ENABLE_LOGGING
1858 {
1859 Debug.InventoryMoveLog("STS = " + GetDayZPlayerOwner().GetSimulationTimeStamp() + " item1 = " + item1 + " item2 = " + item2, "n/a" , "n/a", "SwapEntities", GetDayZPlayerOwner().ToString() );
1860 }
1861 #endif
1862
1863 InventoryLocation src1, src2, dst1, dst2;
1864 if( mode == InventoryMode.LOCAL )
1865 {
1866 if (GameInventory.MakeSrcAndDstForSwap(item1, item2, src1, src2, dst1, dst2))
1867 {
1868 LocationSwap(src1, src2, dst1, dst2);
1869 return true;
1870 }
1871 }
1872
1873 if(!super.SwapEntities(mode,item1,item2))
1874 {
1875 if (GameInventory.MakeSrcAndDstForSwap(item1, item2, src1, src2, dst1, dst2))
1876 {
1877 return PostDeferredForceSwapEntities(mode, item1, item2, dst1, dst2);
1878 }
1879 }
1880 return true;
1881 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
Определения Inventory.c:22
override bool PostDeferredForceSwapEntities(InventoryMode mode, notnull EntityAI item1, notnull EntityAI item2, notnull InventoryLocation dst1, notnull InventoryLocation dst2)
Определения DayZPlayerInventory.c:1883
DayZPlayer GetDayZPlayerOwner()
Определения DayZPlayerInventory.c:168
proto string ToString()
static void InventoryMoveLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Определения Debug.c:137
Определения Debug.c:2
static bool MakeSrcAndDstForSwap(notnull EntityAI item1, notnull EntityAI item2, out InventoryLocation src1, out InventoryLocation src2, out InventoryLocation dst1, out InventoryLocation dst2)
helper function for swap
Определения Inventory.c:1209
script counterpart to engine's class Inventory
Определения Inventory.c:79
InventoryLocation.
Определения InventoryLocation.c:29
static bool IsInventoryMoveLogEnable()
Определения Debug.c:648
Определения Debug.c:594

Перекрестные ссылки GetDayZPlayerOwner(), Debug::InventoryMoveLog(), LogManager::IsInventoryMoveLogEnable(), GameInventory::MakeSrcAndDstForSwap(), PostDeferredForceSwapEntities() и ToString().