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

◆ SendServerMove()

static void InventoryInputUserData::SendServerMove ( Man player,
int type,
notnull InventoryLocation src,
notnull InventoryLocation dst )
inlinestaticprivate

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

58 {
59 if (g_Game.IsServer())
60 {
61 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[syncinv] server sending cmd=" + typename.EnumToString(InventoryCommandType, type) + " src=" + InventoryLocation.DumpToStringNullSafe(src) + " dst=" + InventoryLocation.DumpToStringNullSafe(dst));
62 ScriptInputUserData ctx = new ScriptInputUserData;
63 SerializeMove(ctx, type, src, dst);
64 GameInventory.ServerLocationSyncMoveEntity(player, src.GetItem(), ctx);
65 }
66 }
void syncDebugPrint(string s)
InventoryCommandType
DayZGame g_Game
Определения DayZGame.c:3942
static void SerializeMove(ParamsWriteContext ctx, int type, notnull InventoryLocation src, notnull InventoryLocation dst)
move
Определения InventoryInputUserData.c:5

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

Используется в GameInventory::TakeToDst().