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

◆ ReadFromContext()

override bool ActionInteractCodeLockItem::ReadFromContext ( ParamsReadContext ctx,
out ActionReciveData action_recive_data )
inlineprivate

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

65 {
66 if (!action_recive_data)
67 action_recive_data = new InteractCodeLockActionReciveData;
68
69 super.ReadFromContext(ctx, action_recive_data);
70 InteractCodeLockActionReciveData interactReciveData = InteractCodeLockActionReciveData.Cast(action_recive_data);
71
72 bool isFacingBackside = false;
73 if (!ctx.Read(isFacingBackside))
74 return false;
75
76 interactReciveData.m_IsFacingBackside = isFacingBackside;
77
78 vector lockPos = vector.Zero;
79 if (!ctx.Read(lockPos))
80 return false;
81 interactReciveData.m_CodeLockPosition = lockPos;
82
83 return true;
84 }
proto bool Read(void value_in)

Перекрестные ссылки Serializer::Read() и vector::Zero.