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

◆ SwapEntitiesImpl()

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

См. определение в файле 3_Game/Entities/Man.c строка 544

545 {
546 bool code;
547 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " ::SwapImpl(" + typename.EnumToString(InventoryMode, mode) + ") item1=" + Object.GetDebugName(item1) + " item2=" + item2.GetDebugName(this));
548 if (!GameInventory.CanSwapEntitiesEx(item1, item2))
549 Error("[inv] (Man@" + this + ") SwapEntitiesImpl - cannot swap items!");
550
551 code = GetHumanInventory().SwapEntities(mode, item1, item2);
552
554 if (!code)
555 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[inv] " + GetDebugName(this) + " STS = " + GetSimulationTimeStamp() + " SwapEntitiesImpl - cannot swap or forceswap");
556 return code;
557 }
void syncDebugPrint(string s)
Определения 3_Game/Systems/Inventory/Debug.c:1
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
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().