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

◆ CreateHandEventFromContext()

static HandEventBase CreateHandEventFromContext ( ParamsReadContext ctx)
static

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

137 {
138 int eventID = -1;
139 if (!ctx.Read(eventID))
140 {
141 Error("[hndfsm] CreateHandEventFromContext - cannot read eventID");
142 return null;
143 }
144 Man player;
145 if (!ctx.Read(player))
146 {
147 Error("[hndfsm] CreateHandEventFromContext - cannot read player");
148 return null;
149 }
152
153 int animID = -1;
154 if (!ctx.Read(animID))
155 {
156 Error("[hndfsm] CreateHandEventFromContext - cannot read animID");
157 return null;
158 }
159 HandEventBase b = HandEventFactory(eventID, player, src);
160 if (b)
161 {
162 b.m_AnimationID = animID;
163 b.ReadFromContext(ctx);
164 }
165 return b;
166 }
static HandEventBase HandEventFactory(HandEventID id, Man p=null, InventoryLocation src=null)
Определения Hand_Events.c:110
bool OptionalLocationReadFromContext(out InventoryLocation loc, notnull ParamsReadContext ctx)
Определения InventoryLocation.c:732
override void ReadFromContext(ParamsReadContext ctx)
Определения Hand_Events.c:279
Abstracted event, not to be used, only inherited.
Определения Hand_Events.c:212
InventoryLocation.
Определения InventoryLocation.c:30
proto bool Read(void value_in)
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90

Перекрестные ссылки Error(), HandEventFactory(), OptionalLocationReadFromContext(), Serializer::Read() и HandEventBase::ReadFromContext().