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

◆ OnStoreLoadCustom()

bool OnStoreLoadCustom ( ParamsReadContext ctx,
int version )
private

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

226 {
227 if (!ctx.Read(m_SprayUsage))
228 return false;
229
230 if (!ctx.Read(m_DeleteDryPlantTime))
231 return false;
232
233 if (!ctx.Read(m_SpoiledRemoveTime))
234 return false;
235
236 if (!ctx.Read(m_FullMaturityTime))
237 return false;
238
240 return false;
241
242 if (!ctx.Read(m_StateChangeTime))
243 return false;
244
245 if (!ctx.Read(m_InfestationChance))
246 return false;
247
248 if (!ctx.Read(m_GrowthStagesCount))
249 return false;
250
251 if (!ctx.Read(m_CropsCount))
252 return false;
253
254 if (!ctx.Read(m_CropsType))
255 return false;
256
258 return false;
259
260 if (!ctx.Read(m_PlantState))
261 return false;
262
263 if (!ctx.Read(m_PlantStateIndex))
264 return false;
265
267 return false;
268
269 if (!ctx.Read(m_IsInfested))
270 return false;
271
272 if (!ctx.Read(m_SprayQuantity))
273 return false;
274
275 bool loadBool; // deprec
276 if (!ctx.Read(loadBool))
277 return false;
278
279 float loadFloat = 0.0;
280 if (!ctx.Read(loadFloat)) // deprec
281 return false;
282
283 loadFloat = 0.0;
284 if (ctx.Read(loadFloat))
285 {
286 if (loadFloat > 0.0)
287 m_TimeTracker = loadFloat; // spoil
288 }
289 else
290 {
291 return false;
292 }
293
294 loadFloat = 0.0;
295 if (ctx.Read(loadFloat))
296 {
297 if (loadFloat > 0.0)
298 m_TimeTracker = loadFloat; // spoil delete
299 }
300 else
301 {
302 return false;
303 }
304
305 loadFloat = 0.0;
306 if (ctx.Read(loadFloat))
307 {
308 if ( loadFloat > 0.0 )
309 m_TimeTracker = loadFloat; // dry delete
310 }
311 else
312 {
313 return false;
314 }
315
317 {
319 ErrorEx("[Warning] A plant loaded from storage had a corrupted state change time. Time was now adjusted! Position: " + GetPosition(), ErrorExSeverity.INFO);
320 }
321
322 if (version >= 142)
323 {
324 if (!ctx.Read(m_HasCrops))
325 return false;
326 }
327
328 UpdatePlant();
329 return true;
330 }
float m_TimeTracker
Определения PlantBase.c:37
float m_InfestationChance
Определения PlantBase.c:14
int m_PlantStateIndex
Определения PlantBase.c:22
enum EPlantState m_SprayUsage
bool m_HasCrops
Определения PlantBase.c:18
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:448
int m_DeleteDryPlantTime
Определения PlantBase.c:30
int m_SpoilAfterFullMaturityTime
Определения PlantBase.c:33
int m_FullMaturityTime
Определения PlantBase.c:32
proto bool Read(void value_in)
ErrorExSeverity
Определения EnDebug.c:62
enum ShapeType ErrorEx
class JsonUndergroundAreaTriggerData GetPosition
Определения UndergroundAreaLoader.c:9

Перекрестные ссылки ErrorEx, GetPosition, m_CropsCount, m_CropsType, m_CurrentPlantMaterialQuantity, m_DeleteDryPlantTime, m_FullMaturityTime, m_GrowthStagesCount, m_HasCrops, 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().