public override void PopulateFromJson(JObject jsonObject) { base.PopulateFromJson(jsonObject); m_applicationTargetSelector = ITargetSelectorUtils.FromJsonProperty(jsonObject, "applicationTargetSelector"); JArray val = Serialization.JsonArray(jsonObject, "applicationEndTriggers"); m_applicationEndTriggers = new List <EffectTrigger>((val != null) ? val.get_Count() : 0); if (val != null) { foreach (JToken item in val) { m_applicationEndTriggers.Add(EffectTrigger.FromJsonToken(item)); } } JArray val2 = Serialization.JsonArray(jsonObject, "executionStartTriggers"); m_executionStartTriggers = new List <EffectTrigger>((val2 != null) ? val2.get_Count() : 0); if (val2 != null) { foreach (JToken item2 in val2) { m_executionStartTriggers.Add(EffectTrigger.FromJsonToken(item2)); } } m_condition = EffectCondition.FromJsonProperty(jsonObject, "condition"); }
public override void PopulateFromJson(JObject jsonObject) { base.PopulateFromJson(jsonObject); m_condition = EffectCondition.FromJsonProperty(jsonObject, "condition"); m_executionTargetSelector = ITargetSelectorUtils.FromJsonProperty(jsonObject, "executionTargetSelector"); m_groupExecutionOnTargets = Serialization.JsonTokenValue <bool>(jsonObject, "groupExecutionOnTargets", false); }
public override void PopulateFromJson(JObject jsonObject) { base.PopulateFromJson(jsonObject); m_condition = EffectCondition.FromJsonProperty(jsonObject, "condition"); m_ifTrue = DynamicValue.FromJsonProperty(jsonObject, "ifTrue"); m_ifFalse = DynamicValue.FromJsonProperty(jsonObject, "ifFalse"); }
public void PopulateFromJson(JObject jsonObject) { m_condition = EffectCondition.FromJsonProperty(jsonObject, "condition"); m_selectorIfTrue = ISelectorForCastUtils.FromJsonProperty(jsonObject, "selectorIfTrue"); m_selectorIfFalse = ISelectorForCastUtils.FromJsonProperty(jsonObject, "selectorIfFalse"); }
public override void PopulateFromJson(JObject jsonObject) { base.PopulateFromJson(jsonObject); m_condition = EffectCondition.FromJsonProperty(jsonObject, "condition"); }