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

◆ SplitIntoStackMaxClient()

override void SplitIntoStackMaxClient ( EntityAI destination_entity,
int slot_id )
protected

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

1562 {
1563 if (g_Game.IsClient())
1564 {
1566 {
1569 ctx.Write(1);
1570 ItemBase i1 = this; // @NOTE: workaround for correct serialization
1571 ctx.Write(i1);
1572 ctx.Write(destination_entity);
1573 ctx.Write(true);
1574 ctx.Write(slot_id);
1575 ctx.Send();
1576 }
1577 }
1578 else if (!g_Game.IsMultiplayer())
1579 {
1580 SplitIntoStackMax(destination_entity, slot_id, PlayerBase.Cast(g_Game.GetPlayer()));
1581 }
1582 }
const int INPUT_UDT_ITEM_MANIPULATION
DayZGame g_Game
Определения DayZGame.c:4074
void SplitIntoStackMax(EntityAI destination_entity, int slot_id, PlayerBase player)
Определения ItemBase.c:1584
Определения PlayerBaseClient.c:2
proto native void Send()
proto static native bool CanStoreInputUserData()
Returns true when the channel is free, AND the InputBuffer is NOT full (same as '!...
Определения gameplay.c:121
proto bool Write(void value_out)

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