コード例 #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");
        }
コード例 #2
0
 public void PopulateFromJson(JObject jsonObject)
 {
     m_spellEffect       = Serialization.JsonTokenValue <string>(jsonObject, "spellEffect", "");
     m_originTarget      = ITargetSelectorUtils.FromJsonProperty(jsonObject, "originTarget");
     m_orientation       = ISingleTargetSelectorUtils.FromJsonProperty(jsonObject, "orientation");
     m_delayOverDistance = DelayOverDistance.FromJsonProperty(jsonObject, "delayOverDistance");
 }
コード例 #3
0
 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);
 }
コード例 #4
0
		public void PopulateFromJson(JObject jsonObject)
		{
			m_refDirectionTargetA = ISingleTargetSelectorUtils.FromJsonProperty(jsonObject, "refDirectionTargetA");
			m_refDirectionTargetB = ISingleTargetSelectorUtils.FromJsonProperty(jsonObject, "refDirectionTargetB");
			m_applyStartTargets = ITargetSelectorUtils.FromJsonProperty(jsonObject, "applyStartTargets");
			m_distance = ValueFilter.FromJsonProperty(jsonObject, "distance");
		}
コード例 #5
0
 public void PopulateFromJson(JObject jsonObject)
 {
     m_targetsToCompare = ITargetSelectorUtils.FromJsonProperty(jsonObject, "targetsToCompare");
     m_distance         = ValueFilter.FromJsonProperty(jsonObject, "distance");
 }