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

◆ SplitIntoStackMaxClient()

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

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

1609 {
1610 if (GetGame().IsClient())
1611 {
1612 if (ScriptInputUserData.CanStoreInputUserData())
1613 {
1614 ScriptInputUserData ctx = new ScriptInputUserData;
1616 ctx.Write(1);
1617 ItemBase i1 = this; // @NOTE: workaround for correct serialization
1618 ctx.Write(i1);
1619 ctx.Write(destination_entity);
1620 ctx.Write(true);
1621 ctx.Write(slot_id);
1622 ctx.Send();
1623 }
1624 }
1625 else if (!GetGame().IsMultiplayer())
1626 {
1627 SplitIntoStackMax(destination_entity, slot_id, PlayerBase.Cast(GetGame().GetPlayer()));
1628 }
1629 }
const int INPUT_UDT_ITEM_MANIPULATION
PlayerBase GetPlayer()
Определения ModifierBase.c:51
void ItemBase()
Определения ItemBase.c:140
void SplitIntoStackMax(EntityAI destination_entity, int slot_id, PlayerBase player)
Определения ItemBase.c:1631
proto native void Send()
proto bool Write(void value_out)
proto native CGame GetGame()

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