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

◆ SplitIntoStackMaxClient()

override void InventoryItem::SplitIntoStackMaxClient ( EntityAI destination_entity,
int slot_id )
inlineprivate

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

1589 {
1590 if (!CanBeSplit())
1591 return;
1592
1593 if (GetGame().IsClient())
1594 {
1595 if (ScriptInputUserData.CanStoreInputUserData())
1596 {
1597 ScriptInputUserData ctx = new ScriptInputUserData;
1599 ctx.Write(1);
1600 ItemBase i1 = this; // @NOTE: workaround for correct serialization
1601 ctx.Write(i1);
1602 ctx.Write(destination_entity);
1603 ctx.Write(true);
1604 ctx.Write(slot_id);
1605 ctx.Send();
1606 }
1607 }
1608 else if (!GetGame().IsMultiplayer())
1609 {
1610 SplitIntoStackMax(destination_entity, slot_id, PlayerBase.Cast(GetGame().GetPlayer()));
1611 }
1612 }
const int INPUT_UDT_ITEM_MANIPULATION
Определения _constants.c:8
PlayerBase GetPlayer()
Определения ModifierBase.c:51
void ItemBase()
Определения ItemBase.c:140
override bool CanBeSplit()
Определения ItemBase.c:1580
void SplitIntoStackMax(EntityAI destination_entity, int slot_id, PlayerBase player)
Определения ItemBase.c:1614
proto native void Send()
proto bool Write(void value_out)
proto native CGame GetGame()

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