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

◆ SplitIntoStackMaxCargoClient()

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

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

1816 {
1817 if (GetGame().IsClient())
1818 {
1819 if (ScriptInputUserData.CanStoreInputUserData())
1820 {
1821 ScriptInputUserData ctx = new ScriptInputUserData;
1823 ctx.Write(2);
1824 ItemBase dummy = this; // @NOTE: workaround for correct serialization
1825 ctx.Write(dummy);
1826 ctx.Write(destination_entity);
1827 ctx.Write(true);
1828 ctx.Write(idx);
1829 ctx.Write(row);
1830 ctx.Write(col);
1831 ctx.Send();
1832 }
1833 }
1834 else if (!GetGame().IsMultiplayer())
1835 {
1836 SplitIntoStackMaxCargo(destination_entity, idx, row, col);
1837 }
1838 }
const int INPUT_UDT_ITEM_MANIPULATION
void SplitIntoStackMaxCargo(EntityAI destination_entity, int idx, int row, int col)
Определения ItemBase.c:1879
void ItemBase()
Определения ItemBase.c:140
proto native void Send()
proto bool Write(void value_out)
proto native CGame GetGame()

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