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

◆ ReadFromContext()

override bool ActionRepairPart::ReadFromContext ( ParamsReadContext ctx,
out ActionReciveData action_recive_data )
inlineprotected

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

154 {
155 if(!action_recive_data)
156 {
157 action_recive_data = new RepairPartActionReciveData;
158 }
159 RepairPartActionReciveData recive_data_repair = RepairPartActionReciveData.Cast(action_recive_data);
160
161 super.ReadFromContext(ctx, action_recive_data);
162
163 if( HasTarget() )
164 {
165 int component_index;
166 if ( !ctx.Read(component_index) )
167 return false;
168
169 recive_data_repair.m_ComponentIndexRecived = component_index;
170 }
171 return true;
172 }
bool HasTarget()
Определения ActionBase.c:244
int m_ComponentIndexRecived
Определения ActionRepairPart.c:10
proto bool Read(void value_in)

Перекрестные ссылки ActionBase::HasTarget(), RepairPartActionReciveData::m_ComponentIndexRecived и Serializer::Read().