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

◆ SendServerSwap()

static void InventoryInputUserData::SendServerSwap ( notnull InventoryLocation src1,
notnull InventoryLocation src2,
notnull InventoryLocation dst1,
notnull InventoryLocation dst2,
bool skippedSwap = false )
inlinestaticprivate

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

93 {
94 if (g_Game.IsServer())
95 {
96 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[syncinv] server sending cmd=SWAP src1=" + InventoryLocation.DumpToStringNullSafe(src1) + " src2=" + InventoryLocation.DumpToStringNullSafe(src2) + " dst1=" + InventoryLocation.DumpToStringNullSafe(dst1) + " dst2=" + InventoryLocation.DumpToStringNullSafe(dst2));
97 ScriptInputUserData ctx = new ScriptInputUserData;
98 SerializeSwap(ctx, src1, src2, dst1, dst2, skippedSwap);
99 GameInventory.ServerLocationSwap(src1, src2, dst1, dst2, ctx);
100 }
101 }
void syncDebugPrint(string s)
DayZGame g_Game
Определения DayZGame.c:3942
static void SerializeSwap(ParamsWriteContext ctx, notnull InventoryLocation src1, notnull InventoryLocation src2, notnull InventoryLocation dst1, notnull InventoryLocation dst2, bool skippedSwap)
swap
Определения InventoryInputUserData.c:70

Перекрестные ссылки InventoryLocation::DumpToStringNullSafe(), g_Game, LogManager::IsSyncLogEnable(), SerializeSwap(), GameInventory::ServerLocationSwap() и syncDebugPrint().