DayZ 1.29
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 строка 81

82 {
83 if (g_Game.IsClient())
84 {
85 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[syncinv] t=" + g_Game.GetTime() + "ms sending cmd=SWAP src1=" + InventoryLocation.DumpToStringNullSafe(src1) + " src2=" + InventoryLocation.DumpToStringNullSafe(src2) + " dst1=" + InventoryLocation.DumpToStringNullSafe(dst1) + " dst2=" + InventoryLocation.DumpToStringNullSafe(dst2));
86 ScriptInputUserData ctx = new ScriptInputUserData;
87 SerializeSwap(ctx, src1, src2, dst1, dst2, skippedSwap);
88 ctx.Send();
89 }
90 }
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
proto native void Send()

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

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