Exemple #1
0
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_invocationOwner          = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "invocationOwner");
     m_destination              = ISingleCoordSelectorUtils.FromJsonProperty(jsonObject, "destination");
     m_copyNonHealableLifeValue = Serialization.JsonTokenValue <bool?>(jsonObject, "copyNonHealableLifeValue", (bool?)null);
 }
Exemple #2
0
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_selection                 = AbstractInvocationSelection.FromJsonProperty(jsonObject, "selection");
     m_invocationOwner           = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "invocationOwner");
     m_canBeInvokedOnOtherEntity = Serialization.JsonTokenValue <bool>(jsonObject, "canBeInvokedOnOtherEntity", false);
 }
Exemple #3
0
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_protector                    = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "protector");
     m_fixedProtectionValue         = DynamicValue.FromJsonProperty(jsonObject, "fixedProtectionValue");
     m_damagePercentProtectionValue = DynamicValue.FromJsonProperty(jsonObject, "damagePercentProtectionValue");
 }
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_physicalDamage = Serialization.JsonTokenValue <bool>(jsonObject, "physicalDamage", false);
     m_source         = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "source");
     m_leecher        = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "leecher");
 }
Exemple #5
0
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_selector   = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "selector");
     m_comparison = (ListComparison)Serialization.JsonTokenValue <int>(jsonObject, "comparison", 1);
     m_properties = Serialization.JsonArrayAsList <PropertyId>(jsonObject, "properties");
 }
Exemple #6
0
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_selector = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "selector");
     m_carac    = (CaracId)Serialization.JsonTokenValue <int>(jsonObject, "carac", 3);
     m_value    = ValueFilter.FromJsonProperty(jsonObject, "value");
 }
Exemple #7
0
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_direction         = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "direction");
     m_cellCount         = DynamicValue.FromJsonProperty(jsonObject, "cellCount");
     m_attackValue       = DynamicValue.FromJsonProperty(jsonObject, "attackValue");
     m_attackBoostByCell = DynamicValue.FromJsonProperty(jsonObject, "attackBoostByCell");
 }
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_caracSelector = ICaracIdSelectorUtils.FromJsonProperty(jsonObject, "caracSelector");
     m_modifier      = (ValueModifier)Serialization.JsonTokenValue <int>(jsonObject, "modifier", 1);
     m_value         = DynamicValue.FromJsonProperty(jsonObject, "value");
     m_source        = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "source");
 }
Exemple #9
0
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_counterType           = (CaracId)Serialization.JsonTokenValue <int>(jsonObject, "counterType", 20);
     m_modifier              = (ValueModifier)Serialization.JsonTokenValue <int>(jsonObject, "modifier", 1);
     m_value                 = DynamicValue.FromJsonProperty(jsonObject, "value");
     m_source                = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "source");
     m_canAddWithoutPriorSet = Serialization.JsonTokenValue <bool>(jsonObject, "canAddWithoutPriorSet", false);
     m_maximumValue          = Serialization.JsonTokenValue <int?>(jsonObject, "maximumValue", (int?)null);
 }
Exemple #10
0
        public void PopulateFromJson(JObject jsonObject)
        {
            m_from = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "from");
            JArray val = Serialization.JsonArray(jsonObject, "onlyIf");

            m_onlyIf = new List <IEntityFilter>((val != null) ? val.get_Count() : 0);
            if (val != null)
            {
                foreach (JToken item in val)
                {
                    m_onlyIf.Add(IEntityFilterUtils.FromJsonToken(item));
                }
            }
        }
        public void PopulateFromJson(JObject jsonObject)
        {
            m_start        = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "start");
            m_includeStart = Serialization.JsonTokenValue <bool>(jsonObject, "includeStart", true);
            JArray val = Serialization.JsonArray(jsonObject, "bounceFilters");

            m_bounceFilters = new List <IEntityFilter>((val != null) ? val.get_Count() : 0);
            if (val != null)
            {
                foreach (JToken item in val)
                {
                    m_bounceFilters.Add(IEntityFilterUtils.FromJsonToken(item));
                }
            }
        }
Exemple #12
0
 public void PopulateFromJson(JObject jsonObject)
 {
     m_isIdentical = Serialization.JsonTokenValue <bool>(jsonObject, "isIdentical", false);
     m_reference   = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "reference");
 }
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_actionTarget = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "actionTarget");
 }
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_entityToSwapWith = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "entityToSwapWith");
 }
Exemple #15
0
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_counterType    = (CaracId)Serialization.JsonTokenValue <int>(jsonObject, "counterType", 20);
     m_entitySelector = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "entitySelector");
 }
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_selector        = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "selector");
     m_elementaryState = (ElementaryStates)Serialization.JsonTokenValue <int>(jsonObject, "elementaryState", 0);
 }
Exemple #17
0
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_start = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "start");
     m_end   = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "end");
 }
 public void PopulateFromJson(JObject jsonObject)
 {
     m_areaOfEntity = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "areaOfEntity");
 }
Exemple #19
0
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_value     = DynamicValue.FromJsonProperty(jsonObject, "value");
     m_initiator = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "initiator");
 }
Exemple #20
0
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_entitySelector  = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "entitySelector");
     m_addRelatedBoost = Serialization.JsonTokenValue <bool>(jsonObject, "addRelatedBoost", false);
 }
Exemple #21
0
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_dice    = DynamicValue.FromJsonProperty(jsonObject, "dice");
     m_thrower = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "thrower");
 }
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_source = ISingleEntitySelectorUtils.FromJsonProperty(jsonObject, "source");
 }