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

◆ OnStoreLoad()

override bool KitchenTimer::OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprotected

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

148 {
149 if (!super.OnStoreLoad(ctx, version))
150 return false;
151
152 if (version < 128)
153 {
154 return true;
155 }
156
157 EAlarmClockState state;
158
159 if (!ctx.Read(state))
160 {
161 return false;
162 }
163
164 int time;
165 if (!ctx.Read(time))
166 {
167 return false;
168 }
169
170 SetState(state);
171
172 if (state == EAlarmClockState.SET)
173 {
175 }
176 else if (state == EAlarmClockState.RINGING)
177 {
179 }
180
181 return true;
182 }
EAlarmClockState
Определения ClockBase.c:2
void MakeRingingStart()
Определения ClockBase.c:223
void SetState(bool state)
Определения StaminaHandler.c:32
void SetAlarmTimeServerSecs(int inSecs)
Определения KitchenTimer.c:209
proto bool Read(void value_in)

Перекрестные ссылки MakeRingingStart(), Serializer::Read(), SetAlarmTimeServerSecs() и SetState().