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

◆ SendInputUserDataSwap()

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

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

49 {
50 if (GetGame().IsClient())
51 {
52 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[syncinv] t=" + GetGame().GetTime() + "ms sending cmd=SWAP src1=" + InventoryLocation.DumpToStringNullSafe(src1) + " src2=" + InventoryLocation.DumpToStringNullSafe(src2) + " dst1=" + InventoryLocation.DumpToStringNullSafe(dst1) + " dst2=" + InventoryLocation.DumpToStringNullSafe(dst2));
53 ScriptInputUserData ctx = new ScriptInputUserData;
54 SerializeSwap(ctx, src1, src2, dst1, dst2, skippedSwap);
55 ctx.Send();
56 }
57 }
void syncDebugPrint(string s)
Определения Debug.c:1
float GetTime()
Определения NotificationSystem.c:35
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 void Send()
proto native CGame GetGame()

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

Используется в HandleForceSwapEntities() и HandleSwapEntities().