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

◆ SendServerInventoryCheck()

static void InventoryInputUserData::SendServerInventoryCheck ( array< EntityAI > items,
DayZPlayer player )
inlinestaticprivate

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

45 {
46 ScriptRPC ctx = new ScriptRPC();
47 int nItems = items.Count();
48 ctx.Write(nItems);
49 for (int i = 0; i < nItems; i++)
50 {
51 SerializeInventoryCheckForItem(ctx, items[i]);
52 }
53
54 ctx.Send(player, ERPCs.RPC_ITEM_REPAIR, false, player.GetIdentity());
55 }
ERPCs
Определения ERPCs.c:2
static void SerializeInventoryCheckForItem(ParamsWriteContext ctx, EntityAI item)
Определения InventoryInputUserData.c:24
proto native void Send(Object target, int rpc_type, bool guaranteed, PlayerIdentity recipient=NULL)
Initiate remote procedure call. When called on client, RPC is evaluated on server; When called on ser...
proto bool Write(void value_out)

Перекрестные ссылки ScriptRPC::Send(), SerializeInventoryCheckForItem() и Serializer::Write().

Используется в OnInventoryCheck(), SendRepairToClientDst(), ValidateHandEvent(), ValidateSwap() и ValidateSyncMove().