274 {
275 int modifierCount;
276 if (!ctx.
Read(modifierCount))
277 return false;
278
279 for (int i = 0; i < modifierCount; i++)
280 {
281 int modifierId;
282 if (!ctx.
Read(modifierId))
283 return false;
284
286 if (modifier)
287 {
288 if (modifier.IsTrackAttachedTime())
289 {
290 int time;
292 return false;
293
294 modifier.SetAttachedTime(time);
295 }
296
298 }
299 else
300 {
301 Debug.
LogError(
"DB loading: non-existent modifier with id:"+modifierId.ToString());
302 }
303 }
304
306 {
308 return false;
309 }
310
311 return true;
312 }
ModifierBase GetModifier(int modifier_id)
void ActivateModifier(int modifier_id, bool triggerEvent=EActivationType.TRIGGER_EVENT_ON_ACTIVATION)
ref array< ref Param > m_ParamList
static void LogError(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message as error message.
proto bool Read(void value_in)