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

◆ SplitIntoStackMaxCargoClient()

void InventoryItem::SplitIntoStackMaxCargoClient ( EntityAI destination_entity,
int idx,
int row,
int col )
inlineprotected

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

1843 {
1844 if (g_Game.IsClient())
1845 {
1846 if (ScriptInputUserData.CanStoreInputUserData())
1847 {
1848 ScriptInputUserData ctx = new ScriptInputUserData;
1850 ctx.Write(2);
1851 ItemBase dummy = this; // @NOTE: workaround for correct serialization
1852 ctx.Write(dummy);
1853 ctx.Write(destination_entity);
1854 ctx.Write(true);
1855 ctx.Write(idx);
1856 ctx.Write(row);
1857 ctx.Write(col);
1858 ctx.Send();
1859 }
1860 }
1861 else if (!g_Game.IsMultiplayer())
1862 {
1863 SplitIntoStackMaxCargo(destination_entity, idx, row, col);
1864 }
1865 }
const int INPUT_UDT_ITEM_MANIPULATION
DayZGame g_Game
Определения DayZGame.c:3942
void SplitIntoStackMaxCargo(EntityAI destination_entity, int idx, int row, int col)
Определения ItemBase.c:1906
void ItemBase()
Определения ItemBase.c:148
proto native void Send()
proto bool Write(void value_out)

Перекрестные ссылки ScriptInputUserData::CanStoreInputUserData(), g_Game, INPUT_UDT_ITEM_MANIPULATION, ItemBase(), ScriptInputUserData::Send(), SplitIntoStackMaxCargo() и Serializer::Write().