DayZ 1.27
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 строка 59

60 {
61 if (GetGame().IsServer())
62 {
63 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));
64 ScriptInputUserData ctx = new ScriptInputUserData;
65 SerializeSwap(ctx, src1, src2, dst1, dst2, skippedSwap);
66 GameInventory.ServerLocationSwap(src1, src2, dst1, dst2, ctx);
67 }
68 }
void syncDebugPrint(string s)
Определения Debug.c:1
static void SerializeSwap(ParamsWriteContext ctx, notnull InventoryLocation src1, notnull InventoryLocation src2, notnull InventoryLocation dst1, notnull InventoryLocation dst2, bool skippedSwap)
swap
Определения InventoryInputUserData.c:37
proto native CGame GetGame()

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