266 {
267 int modifierCount;
268 if (!ctx.
Read(modifierCount))
269 return false;
270
271 for (int i = 0; i < modifierCount; i++)
272 {
273 int modifierId;
274 if (!ctx.
Read(modifierId))
275 return false;
276
278 if (modifier)
279 {
280 if (modifier.IsTrackAttachedTime())
281 {
282 int time;
284 return false;
285
286 modifier.SetAttachedTime(time);
287 }
288
290 }
291 else
292 {
293 Debug.
LogError(
"DB loading: non-existent modifier with id:"+modifierId.ToString());
294 }
295 }
296
298 {
300 return false;
301 }
302
303 return true;
304 }
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)