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

◆ OnStoreLoad()

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

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

152 {
153 if (!super.OnStoreLoad(ctx, version))
154 return false;
155
156 if (version < 126)
157 {
158 return true;
159 }
160
161 EAlarmClockState state;
162
163 if ( !ctx.Read( state ) )
164 {
165 return false;
166 }
167
168 float time;
169
170 if ( !ctx.Read( time ) )
171 {
172 return false;
173 }
174
175 SetAlarmTimeServer(time);
176 SetState(state);
177 if ( state == EAlarmClockState.SET )
178 {
179 TurnOn();
180 }
181 else if (state == EAlarmClockState.RINGING )
182 {
184 }
185
186 return true;
187 }
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().