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

◆ SendServerMove()

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

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

25 {
26 if (GetGame().IsServer())
27 {
28 if (LogManager.IsSyncLogEnable()) syncDebugPrint("[syncinv] server sending cmd=" + typename.EnumToString(InventoryCommandType, type) + " src=" + InventoryLocation.DumpToStringNullSafe(src) + " dst=" + InventoryLocation.DumpToStringNullSafe(dst));
29 ScriptInputUserData ctx = new ScriptInputUserData;
30 SerializeMove(ctx, type, src, dst);
31 GameInventory.ServerLocationSyncMoveEntity(player, src.GetItem(), ctx);
32 }
33 }
void syncDebugPrint(string s)
Определения Debug.c:1
InventoryCommandType
Определения Inventory.c:3
static void SerializeMove(ParamsWriteContext ctx, int type, notnull InventoryLocation src, notnull InventoryLocation dst)
move
Определения InventoryInputUserData.c:5
proto native CGame GetGame()

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

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