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

◆ SwapEntitiesImpl()

bool EntityAI::SwapEntitiesImpl ( InventoryMode mode,
notnull EntityAI item1,
notnull EntityAI item2 )
inlineprotected

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

528 {
529 bool code;
530 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " ::SwapImpl(" + typename.EnumToString(InventoryMode, mode) + ") item1=" + Object.GetDebugName(item1) + " item2=" + item2.GetDebugName(this));
531 if (!GameInventory.CanSwapEntitiesEx(item1, item2))
532 Error("[inv] (Man@" + this + ") SwapEntitiesImpl - cannot swap items!");
533
534 code = GetHumanInventory().SwapEntities(mode, item1, item2);
535
537 if (!code)
538 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " SwapEntitiesImpl - cannot swap or forceswap");
539 return code;
540 }
void syncDebugPrint(string s)
Определения Debug.c:1
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
Определения Inventory.c:22
void UpdateInventoryMenu()
proto native HumanInventory GetHumanInventory()
override bool SwapEntities(InventoryMode mode, notnull EntityAI item1, notnull EntityAI item2)
Определения HumanInventory.c:328
override string GetDebugName()
Определения dayzplayer.c:1170
class LOD Object
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90

Перекрестные ссылки GameInventory::CanSwapEntitiesEx(), Error(), GetDebugName(), GetHumanInventory(), LogManager::IsSyncLogEnable(), HumanInventory::SwapEntities(), syncDebugPrint() и UpdateInventoryMenu().

Используется в JunctureSwapEntities(), LocalSwapEntities(), PredictiveSwapEntities() и ServerSwapEntities().