Beispiel #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);
 }
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_destination  = ISingleCoordSelectorUtils.FromJsonProperty(jsonObject, "destination");
     m_movementType = (MovementType)Serialization.JsonTokenValue <int>(jsonObject, "movementType", 3);
     m_allowTeleportOnTargetEntity = Serialization.JsonTokenValue <bool>(jsonObject, "allowTeleportOnTargetEntity", false);
 }
        public void PopulateFromJson(JObject jsonObject)
        {
            m_from = ISingleCoordSelectorUtils.FromJsonProperty(jsonObject, "from");
            JArray val = Serialization.JsonArray(jsonObject, "onlyIf");

            m_onlyIf = new List <ICoordFilter>((val != null) ? val.get_Count() : 0);
            if (val != null)
            {
                foreach (JToken item in val)
                {
                    m_onlyIf.Add(ICoordFilterUtils.FromJsonToken(item));
                }
            }
        }
Beispiel #4
0
 public override void PopulateFromJson(JObject jsonObject)
 {
     base.PopulateFromJson(jsonObject);
     m_from = ISingleCoordSelectorUtils.FromJsonProperty(jsonObject, "from");
 }