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

◆ SplitIntoStackMaxClient()

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

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

1634 {
1635 if (g_Game.IsClient())
1636 {
1637 if (ScriptInputUserData.CanStoreInputUserData())
1638 {
1639 ScriptInputUserData ctx = new ScriptInputUserData;
1641 ctx.Write(1);
1642 ItemBase i1 = this; // @NOTE: workaround for correct serialization
1643 ctx.Write(i1);
1644 ctx.Write(destination_entity);
1645 ctx.Write(true);
1646 ctx.Write(slot_id);
1647 ctx.Send();
1648 }
1649 }
1650 else if (!g_Game.IsMultiplayer())
1651 {
1652 SplitIntoStackMax(destination_entity, slot_id, PlayerBase.Cast(g_Game.GetPlayer()));
1653 }
1654 }
const int INPUT_UDT_ITEM_MANIPULATION
DayZGame g_Game
Определения DayZGame.c:3942
void ItemBase()
Определения ItemBase.c:148
void SplitIntoStackMax(EntityAI destination_entity, int slot_id, PlayerBase player)
Определения ItemBase.c:1656
proto native void Send()
proto bool Write(void value_out)

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