public void PopulateFromJson(JObject jsonObject)
        {
            JArray val = Serialization.JsonArray(jsonObject, "selectors");

            m_selectors = new List <ISelectorForCast>((val != null) ? val.get_Count() : 0);
            if (val != null)
            {
                foreach (JToken item in val)
                {
                    m_selectors.Add(ISelectorForCastUtils.FromJsonToken(item));
                }
            }
        }
Exemple #2
0
 public void PopulateFromJson(JObject jsonObject)
 {
     m_condition       = EffectCondition.FromJsonProperty(jsonObject, "condition");
     m_selectorIfTrue  = ISelectorForCastUtils.FromJsonProperty(jsonObject, "selectorIfTrue");
     m_selectorIfFalse = ISelectorForCastUtils.FromJsonProperty(jsonObject, "selectorIfFalse");
 }
Exemple #3
0
 public void PopulateFromJson(JObject jsonObject)
 {
     m_selector1 = ISelectorForCastUtils.FromJsonProperty(jsonObject, "selector1");
     m_selector2 = ISelectorForCastUtils.FromJsonProperty(jsonObject, "selector2");
 }