Пример #1
0
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_quantity      = DynamicValue.FromJsonProperty(jsonObject, "quantity");
     m_caracSelector = ISingleCaracIdSelectorUtils.FromJsonProperty(jsonObject, "caracSelector");
     m_from          = IEntitySelectorUtils.FromJsonProperty(jsonObject, "from");
 }
Пример #2
0
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_precomputedData    = PrecomputedData.FromJsonProperty(jsonObject, "precomputedData");
     m_families           = Serialization.JsonArrayAsList <Family>(jsonObject, "families");
     m_life               = ILevelOnlyDependantUtils.FromJsonProperty(jsonObject, "life");
     m_movementPoints     = ILevelOnlyDependantUtils.FromJsonProperty(jsonObject, "movementPoints");
     m_actionValue        = ILevelOnlyDependantUtils.FromJsonProperty(jsonObject, "actionValue");
     m_customActionTarget = IEntitySelectorUtils.FromJsonProperty(jsonObject, "customActionTarget");
     m_actionType         = (ActionType)Serialization.JsonTokenValue <int>(jsonObject, "actionType", 0);
     m_actionRange        = ActionRange.FromJsonProperty(jsonObject, "actionRange");
     m_aiArchetype        = (AIArchetype)Serialization.JsonTokenValue <int>(jsonObject, "aiArchetype", 0);
 }
Пример #3
0
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_first  = IEntitySelectorUtils.FromJsonProperty(jsonObject, "first");
     m_second = IEntitySelectorUtils.FromJsonProperty(jsonObject, "second");
 }