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

◆ OnStoreLoadCustom()

bool OnStoreLoadCustom ( ParamsReadContext ctx,
int version )
private

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

226 {
227 int loadInt;
228 if ( !ctx.Read( loadInt ) )
229 loadInt = 0;
230
231 m_SprayUsage = loadInt;
232
233 loadInt = 0;
234 if ( !ctx.Read( loadInt ) )
235 loadInt = 5;
236
237 m_DeleteDryPlantTime = loadInt;
238
239 loadInt = 0;
240 if ( !ctx.Read( loadInt ) )
241 loadInt = 5;
242 m_SpoiledRemoveTime = loadInt;
243
244 loadInt = 0;
245 if ( !ctx.Read( loadInt ) )
246 loadInt = 300;
247 m_FullMaturityTime = loadInt;
248
249 loadInt = 0;
250 if ( !ctx.Read( loadInt ) )
251 loadInt = 300;
253
254 loadInt = 0;
255 if ( !ctx.Read( loadInt ) )
256 return false;
257 m_StateChangeTime = loadInt;
258
259 float loadFloat = 0.0;
260 if ( !ctx.Read( loadFloat ) )
261 loadFloat = 0;
262 m_InfestationChance = loadFloat;
263
264 loadInt = 0;
265 if ( !ctx.Read( loadInt ) )
266 return false;
267 m_GrowthStagesCount = loadInt;
268
269 loadInt = 0;
270 if ( !ctx.Read( loadInt ) )
271 loadInt = 1;
272 m_CropsCount = loadInt;
273
274 string loadString = "";
275 if ( !ctx.Read( loadString ) )
276 return false;
277 m_CropsType = loadString;
278
279 loadFloat = 0.0;
280 if ( !ctx.Read( loadFloat ) )
281 loadFloat = 1;
282 m_PlantMaterialMultiplier = loadFloat;
283
284 loadInt = 0;
285 if ( !ctx.Read( loadInt ) )
286 loadInt = 1;
287 m_PlantState = loadInt;
288
289 loadInt = 0;
290 if ( !ctx.Read( loadInt ) )
291 loadInt = 0;
292 m_PlantStateIndex = loadInt;
293
294 loadFloat = 0.0;
295 if ( !ctx.Read( loadFloat ) )
296 loadFloat = 1;
298
299 bool loadBool = false;
300 if ( !ctx.Read( loadBool ) )
301 loadBool = false;
302 m_IsInfested = loadBool;
303
304 loadFloat = 0.0;
305 if ( !ctx.Read( loadFloat ) )
306 loadFloat = 0;
307 m_SprayQuantity = loadFloat;
308
309
310
311 loadBool = false;
312 if ( ctx.Read( loadBool ) )
313 {
314 if ( loadBool )
315 {}
316 }
317 else
318 {
319 return false;
320 }
321
322 loadFloat = 0.0;
323 if ( ctx.Read( loadFloat ) )
324 {
325 if ( loadFloat > 0.0 )
326 {}
327 }
328 else
329 {
330 return false;
331 }
332
333 loadFloat = 0.0;
334 if ( ctx.Read( loadFloat ) )
335 {
336 if ( loadFloat > 0.0 )
337 m_TimeTracker = loadFloat; // spoil
338 }
339 else
340 {
341 return false;
342 }
343
344 loadFloat = 0.0;
345 if ( ctx.Read( loadFloat ) )
346 {
347 if ( loadFloat > 0.0 )
348 m_TimeTracker = loadFloat; // spoil delete
349 }
350 else
351 {
352 return false;
353 }
354
355 loadFloat = 0.0;
356 if ( ctx.Read( loadFloat ) )
357 {
358 if ( loadFloat > 0.0 )
359 m_TimeTracker = loadFloat; // dry delete
360 }
361 else
362 {
363 return false;
364 }
365
366
367 UpdatePlant();
368 return true;
369 }
float m_TimeTracker
Определения PlantBase.c:37
float m_InfestationChance
Определения PlantBase.c:14
int m_PlantStateIndex
Определения PlantBase.c:22
enum EPlantState m_SprayUsage
float m_PlantMaterialMultiplier
Определения PlantBase.c:20
EPlantState m_PlantState
Определения PlantBase.c:24
float m_StateChangeTime
Определения PlantBase.c:34
int m_CropsCount
Определения PlantBase.c:17
int m_SpoiledRemoveTime
Определения PlantBase.c:31
float m_SprayQuantity
Определения PlantBase.c:27
int m_GrowthStagesCount
Определения PlantBase.c:16
float m_CurrentPlantMaterialQuantity
Определения PlantBase.c:23
string m_CropsType
Определения PlantBase.c:19
bool m_IsInfested
Определения PlantBase.c:26
void UpdatePlant()
Определения PlantBase.c:495
int m_DeleteDryPlantTime
Определения PlantBase.c:30
int m_SpoilAfterFullMaturityTime
Определения PlantBase.c:33
int m_FullMaturityTime
Определения PlantBase.c:32
proto bool Read(void value_in)

Перекрестные ссылки m_CropsCount, m_CropsType, m_CurrentPlantMaterialQuantity, m_DeleteDryPlantTime, m_FullMaturityTime, m_GrowthStagesCount, m_InfestationChance, m_IsInfested, m_PlantMaterialMultiplier, m_PlantState, m_PlantStateIndex, m_SpoilAfterFullMaturityTime, m_SpoiledRemoveTime, m_SprayQuantity, m_SprayUsage, m_StateChangeTime, m_TimeTracker, Serializer::Read() и UpdatePlant().

Используется в OnStoreLoad().