コード例 #1
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");
 }
コード例 #2
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");
		}
コード例 #3
0
        public override void PopulateFromJson(JObject jsonObject)
        {
            base.PopulateFromJson(jsonObject);
            m_animation = (EntityAnimationKey)Serialization.JsonTokenValue <int>(jsonObject, "animation", 1);
            JArray val = Serialization.JsonArray(jsonObject, "additionalCoords");

            m_additionalCoords = new List <ISingleTargetSelector>((val != null) ? val.get_Count() : 0);
            if (val != null)
            {
                foreach (JToken item in val)
                {
                    m_additionalCoords.Add(ISingleTargetSelectorUtils.FromJsonToken(item));
                }
            }
        }
コード例 #4
0
 public void PopulateFromJson(JObject jsonObject)
 {
     m_startCoords = ISingleTargetSelectorUtils.FromJsonProperty(jsonObject, "startCoords");
 }
コード例 #5
0
 public void PopulateFromJson(JObject jsonObject)
 {
     m_origin = ISingleTargetSelectorUtils.FromJsonProperty(jsonObject, "origin");
     m_delay  = Serialization.JsonTokenValue <float>(jsonObject, "delay", 0.25f);
 }
コード例 #6
0
 public void PopulateFromJson(JObject jsonObject)
 {
     m_symmetryCenter = ISingleTargetSelectorUtils.FromJsonProperty(jsonObject, "symmetryCenter");
     m_refCoords      = ISingleTargetSelectorUtils.FromJsonProperty(jsonObject, "refCoords");
 }