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

◆ OnStoreLoad()

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

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

154 {
155 if (!super.OnStoreLoad(ctx, version))
156 return false;
157
158 if (version < 126)
159 {
160 return true;
161 }
162
163 EAlarmClockState state;
164
165 if ( !ctx.Read( state ) )
166 {
167 return false;
168 }
169
170 float time;
171
172 if ( !ctx.Read( time ) )
173 {
174 return false;
175 }
176
177 SetAlarmTimeServer(time);
178 SetState(state);
179 if ( state == EAlarmClockState.SET )
180 {
181 TurnOn();
182 }
183 else if (state == EAlarmClockState.RINGING )
184 {
186 }
187
188 return true;
189 }
void TurnOn()
Определения ClockBase.c:301
EAlarmClockState
Определения ClockBase.c:2
void MakeRingingStart()
Определения ClockBase.c:223
void SetAlarmTimeServer(float time01)
Определения ClockBase.c:320
void SetState(bool state)
Определения StaminaHandler.c:32
proto bool Read(void value_in)

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