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

◆ CreateWeaponEventFromContext()

WeaponEventBase CreateWeaponEventFromContext ( ParamsReadContext ctx)

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

282{
283 int packedType;
284 ctx.Read(packedType);
285 DayZPlayer player;
286 ctx.Read(player);
287 Magazine magazine;
288 ctx.Read(magazine);
289
290 WeaponEventID eventID = packedType >> 16;
291 WeaponEvents animEvent = packedType & 0x0000ffff;
292 WeaponEventBase b = WeaponEventFactory(eventID, animEvent, player, magazine);
293 b.ReadFromContext(ctx);
294 return b;
295}
WeaponEventBase WeaponEventFactory(WeaponEventID id, int aetype, DayZPlayer p=NULL, Magazine m=NULL)
creates weapon fsm events
Определения Events.c:223
WeaponEventID
identifier for events. mainly for rpc purposes
Определения Events.c:6
proto bool Read(void value_in)
void ReadFromContext(ParamsReadContext ctx)
Определения Events.c:53
signalize mechanism manipulation
Определения Events.c:35
WeaponEvents
events
Определения human.c:963

Перекрестные ссылки Serializer::Read(), WeaponEventBase::ReadFromContext() и WeaponEventFactory().

Используется в OnEventForRemoteWeapon().