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

◆ SplitIntoStackMaxHandsClient()

void InventoryItem::SplitIntoStackMaxHandsClient ( PlayerBase player)
inlineprivate

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

1884 {
1885 if (!CanBeSplit())
1886 return;
1887
1888 if (GetGame().IsClient())
1889 {
1890 if (ScriptInputUserData.CanStoreInputUserData())
1891 {
1892 ScriptInputUserData ctx = new ScriptInputUserData;
1894 ctx.Write(3);
1895 ItemBase i1 = this; // @NOTE: workaround for correct serialization
1896 ctx.Write(i1);
1897 ItemBase destination_entity = this;
1898 ctx.Write(destination_entity);
1899 ctx.Write(true);
1900 ctx.Write(0);
1901 ctx.Send();
1902 }
1903 }
1904 else if (!GetGame().IsMultiplayer())
1905 {
1906 SplitIntoStackMaxHands(player);
1907 }
1908 }
const int INPUT_UDT_ITEM_MANIPULATION
Определения _constants.c:8
void SplitIntoStackMaxHands(PlayerBase player)
Определения ItemBase.c:1910
void ItemBase()
Определения ItemBase.c:140
override bool CanBeSplit()
Определения ItemBase.c:1580
proto native void Send()
proto bool Write(void value_out)
proto native CGame GetGame()

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