Example #1
0
        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);
 }
Example #3
0
 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");
 }
Example #4
0
 public void PopulateFromJson(JObject jsonObject)
 {
     m_condition       = EffectCondition.FromJsonProperty(jsonObject, "condition");
     m_selectorIfTrue  = ISelectorForCastUtils.FromJsonProperty(jsonObject, "selectorIfTrue");
     m_selectorIfFalse = ISelectorForCastUtils.FromJsonProperty(jsonObject, "selectorIfFalse");
 }
Example #5
0
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_condition = EffectCondition.FromJsonProperty(jsonObject, "condition");
 }